Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to intercept the call to the matched method?
    primarykey
    data
    text
    <p>Below is my configuration, and I want to intercept the call to the matched method. What should I do to add the match methods?</p> <pre><code>&lt;unity xmlns="http://schemas.microsoft.com/practices/2010/unity"&gt; &lt;sectionExtension type="Microsoft.Practices.Unity.InterceptionExtension.Configuration.InterceptionConfigurationExtension, Microsoft.Practices.Unity.Interception.Configuration" /&gt; &lt;alias alias="IDAL" type="InterceptionBlockApplication.IDAL,InterceptionBlockApplication"/&gt; &lt;alias alias="DALTest" type="InterceptionBlockApplication.DALTest,InterceptionBlockApplication"/&gt; &lt;container name="DALTest"&gt; &lt;extension type="Interception"/&gt; &lt;interception&gt; &lt;policy name="TestPolicy"&gt; &lt;matchingRule name="Method Signature Matching Rule" type="MemberNameMatchingRule"&gt; &lt;method name="MethodA"/&gt; &lt;method name="MethodB"&gt; &lt;/method&gt; I try to do that. But it will throw a exception that: [ Configuration is incorrect, the type Microsoft.Practices.Unity.InterceptionExtension.MemberNameMatchingRule does not have a method named MethodA that takes parameters named .] What should I do? &lt;/matchingRule&gt; &lt;callHandler name="MyLogCallHandler" type="InterceptionBlockApplication.MyLogCallHandler, InterceptionBlockApplication, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"&gt; &lt;/callHandler&gt; &lt;/policy&gt; &lt;/interception&gt; &lt;register type="IDAL" mapTo="DALTest" name="DALTest"&gt; &lt;interceptor isDefaultForType="false" type="VirtualMethodInterceptor"/&gt; &lt;/register&gt; &lt;/container&gt; &lt;/unity&gt; </code></pre> <p>Any help will be appreciate.</p> <p>Regards.</p> <p>David</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload