Does every Method will be matched once it's invoked with the matchingrules?

Jun 22, 2011 at 7:30 AM
Hi All,
I have a doubt that I had define the matchingrules, does every method will be matched once it's invoked? ()
         <addname="Policy">
         <matchingRules>
             <addtype="Microsoft.Practices.EnterpriseLibrary.PolicyInjection.MatchingRules.MemberNameMatchingRule, Microsoft.Practices.EnterpriseLibrary.PolicyInjection, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" name="Member Name Matching Rule">
             <matches>
               <addmatch="ProcessOrder"ignoreCase="false" />
             </matches>
              </add>
          </matchingRules>
          <handlers>
            <add type="DV.CustomCallHandlers.OrderValidationCallHandler, DV.CustomCallHandlers"name="OrderValidationCallHandler"validateSupplier="true" validateTotalPrice="true"/>
         </handlers>
Jun 22, 2011 at 9:33 AM

Hi,

Yes it will do the matching with methods, including the properties as they are considered to be members of the class. If you just want to match the method name only, then you can use the Method Signature Matching rule.

 

Noel Angelo Bolasoc
Global Technologies and Solutions
Avanade, Inc.
entlib.support@avanade.com