internal ViolationHandlerExpressionBase(ViolationConfigurationExpression violationConfigurationExpression) { if (violationConfigurationExpression == null) { throw new ArgumentNullException("violationConfigurationExpression"); } ViolationConfigurationExpression = violationConfigurationExpression; }
internal ViolationHandlerExpression(ViolationConfigurationExpression violationConfigurationExpression) : base(violationConfigurationExpression) { }
public void IsHandledBy <TPolicyViolationHandler>(Func <TPolicyViolationHandler> policyViolationHandlerFactory) where TPolicyViolationHandler : class, IPolicyViolationHandler { ViolationConfigurationExpression.AddConvention(new PolicyTypeToPolicyViolationHandlerInstanceConvention <TSecurityPolicy, TPolicyViolationHandler>(policyViolationHandlerFactory)); }
public void IsHandledBy <TPolicyViolationHandler>() where TPolicyViolationHandler : class, IPolicyViolationHandler { ViolationConfigurationExpression.AddConvention(new PolicyTypeToPolicyViolationHandlerTypeConvention <TSecurityPolicy, TPolicyViolationHandler>()); }