public InterceptorMatcher(IAspectConfigure aspectConfigure) { if (aspectConfigure == null) { throw new ArgumentNullException(nameof(aspectConfigure)); } this.aspectConfigure = aspectConfigure; }
public AspectValidator(IAspectConfigure aspectConfigure) { if (aspectConfigure == null) { throw new ArgumentNullException(nameof(aspectConfigure)); } this.aspectConfigure = aspectConfigure; }
public AspectConfigureProvider(IEnumerable <IInterceptorFactory> interceptorFactories, IEnumerable <Func <MethodInfo, bool> > nonAspectPredicates) { if (interceptorFactories == null) { throw new ArgumentNullException(nameof(interceptorFactories)); } if (nonAspectPredicates == null) { throw new ArgumentNullException(nameof(nonAspectPredicates)); } AspectConfigure = new AspectConfigure(interceptorFactories, nonAspectPredicates); }
public static IAspectValidator GetAspectValidator(IAspectConfigure configure) { var handlers = new List <IAspectValidationHandler> { new AccessibleAspectValidationHandler(), new AttributeAspectValidationHandler(), new CacheAspectValidationHandler(), new GlobalAspectValidationHandler(configure), new DynamicallyAspectValidationHandler(), new IgnoreAspectValidationHandler(configure), new NonAspectValidationHandler() }; var aspectValidatorBuilder = new AspectValidatorBuilder(handlers); return(aspectValidatorBuilder.Build()); }