示例#1
0
 public AspectActivator(IAspectContextFactory aspectContextFactory, IAspectBuilderFactory aspectBuilderFactory,
                        IAspectExceptionWrapper aspectExceptionWrapper)
 {
     _aspectContextFactory   = aspectContextFactory;
     _aspectBuilderFactory   = aspectBuilderFactory;
     _aspectExceptionWrapper = aspectExceptionWrapper;
 }
 public AspectCoreInterceptor(IAspectBuilderFactory aspectBuilderFactory,
                              IAspectContextFactory aspectContextFactory, IAspectValidatorBuilder aspectValidatorBuilder)
 {
     _aspectBuilderFactory = aspectBuilderFactory ?? throw new ArgumentNullException(nameof(aspectBuilderFactory));
     _aspectContextFactory = aspectContextFactory ?? throw new ArgumentNullException(nameof(aspectContextFactory));
     _aspectValidator      = aspectValidatorBuilder?.Build() ?? throw new ArgumentNullException(nameof(aspectValidatorBuilder));
 }
 public DynamicProxyInterceptor(IAspectBuilderFactory aspectBuilderFactory,
                                IAspectContextFactory aspectContextFactory, IAspectValidatorBuilder aspectValidatorBuilder,
                                IAspectExceptionWrapper aspectExceptionWrapper)
 {
     _aspectBuilderFactory   = aspectBuilderFactory ?? throw new ArgumentNullException(nameof(aspectBuilderFactory));
     _aspectContextFactory   = aspectContextFactory ?? throw new ArgumentNullException(nameof(aspectContextFactory));
     _aspectValidator        = aspectValidatorBuilder?.Build() ?? throw new ArgumentNullException(nameof(aspectValidatorBuilder));
     _aspectExceptionWrapper = aspectExceptionWrapper ?? throw new ArgumentNullException(nameof(aspectExceptionWrapper));
 }
示例#4
0
 public AspectActivator(IAspectContextFactory aspectContextFactory, IAspectBuilderFactory aspectBuilderFactory)
 {
     _aspectContextFactory = aspectContextFactory;
     _aspectBuilderFactory = aspectBuilderFactory;
 }
 public OriginExceptionAspectActivatorFactory(IAspectContextFactory aspectContextFactory, IAspectBuilderFactory aspectBuilderFactory)
 {
     this.aspectContextFactory = aspectContextFactory;
     this.aspectBuilderFactory = aspectBuilderFactory;
 }
 public MainAspectHandler(IAspectContextFactory aspectContextFactory, int cutOff = 4)
 {
     this.aspectContextFactory = aspectContextFactory ?? throw new ArgumentNullException(nameof(aspectContextFactory));
     this.cutOff = cutOff;
 }
示例#7
0
 public AspectActivatorFactory(IAspectContextFactory aspectContextFactory, IAspectBuilderFactory aspectBuilderFactory)
 {
     _aspectContextFactory = aspectContextFactory ?? throw new ArgumentNullException(nameof(aspectContextFactory));
     _aspectBuilderFactory = aspectBuilderFactory ?? throw new ArgumentNullException(nameof(aspectBuilderFactory));
 }
示例#8
0
 public AspectCoreClientProxyCreator(IProxyTypeGenerator generator, IAspectContextFactory contextFactory, ClientProxyAspectBuilderFactory aspectBuilderFactory)
 {
     this.generator            = generator;
     this.contextFactory       = contextFactory;
     this.aspectBuilderFactory = aspectBuilderFactory;
 }