Intercepting Extension methods with Policy Injection

Topics: Policy Injection Application Block
Sep 3, 2008 at 4:01 AM
I'm trying to figure out if this is possible at all but all my tests have failed. I'd like to know if anyone knows if the Policy Inject Application Block will work with intercepting extension methods? I want to apply the CachingCallHandler attribute to an extension method but all of my tests show that intercepting an extension method doesn't work?

Any help is much appreciated!

Sep 3, 2008 at 6:27 AM
PIAB will not intercept extension methods. PIAB only intercepts type members, and extension methods, despite some compiler trickery, are not members of the type they're extending.