public static Type Intercept <TToIntercept, TInterceptor>(this ITypeInterceptor interceptor) where TInterceptor : IInterceptionHandler, new()
 {
     return(interceptor.Intercept(typeof(TToIntercept), typeof(TInterceptor)));
 }
Exemplo n.º 2
0
 public static Type InterceptWithAttributes(this ITypeInterceptor interceptor, Type type)
 {
     return(interceptor.Intercept(type, typeof(AttributesInterceptionHandler)));
 }