Default Interceptor for All Types

Jul 15, 2009 at 8:17 AM

Hi,

Is it possible to specify, either by code or configuration file, the default interceptor to use for all types?

Thanks,

Ricardo Peres

Jul 16, 2009 at 4:30 AM

Not at this time.

 

Jul 23, 2009 at 8:48 AM
Edited Jul 23, 2009 at 8:49 AM

I have been using a container extension to apply an interceptor to all my classes:

container.AddNewExtension<InterceptOnRegister>()
    .Configure<InterceptOnRegister>()
    .SetDefaultInterceptor<TransparentProxyInterceptor>()
    .AddMatchingRule(new AssemblyNameStartsWith("MyCompany"));


You can get the code here: http://www.agileatwork.com/default-interceptor-for-unity/