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