public TargetTemp(AopInterceptor interceptor) { _Interceptor = interceptor; _Interceptor.Init <ITemp>(); }
public static T Factory <T>(AopInterceptor interceptor) => (T)Activator.CreateInstance(AopWrapper.CreateType <T>(), new[] { interceptor });
public static object Factory(Type interFacetype, AopInterceptor interceptor) => Activator.CreateInstance(AopWrapper.CreateType(interFacetype), new[] { interceptor });
public static T GetInstance <T>() => AopInterceptor.Factory <T>(new TargetInterceptor());