Exemplo n.º 1
0
 internal ViolationHandlerConfigurationBase(ViolationConfiguration violationConfiguration)
 {
     if (violationConfiguration == null)
     {
         throw new ArgumentNullException("violationConfiguration");
     }
     ViolationConfiguration = violationConfiguration;
 }
Exemplo n.º 2
0
 internal ViolationHandlerConfiguration(ViolationConfiguration violationConfiguration) : base(violationConfiguration)
 {
 }
Exemplo n.º 3
0
 public void IsHandledBy <TPolicyViolationHandler>() where TPolicyViolationHandler : class, IPolicyViolationHandler
 {
     ViolationConfiguration.AddConvention(new PolicyTypeToPolicyViolationHandlerTypeConvention <TSecurityPolicy, TPolicyViolationHandler>());
 }
Exemplo n.º 4
0
 public void IsHandledBy <TPolicyViolationHandler>(Func <TPolicyViolationHandler> policyViolationHandlerFactory) where TPolicyViolationHandler : class, IPolicyViolationHandler
 {
     ViolationConfiguration.AddConvention(new PolicyTypeToPolicyViolationHandlerInstanceConvention <TSecurityPolicy, TPolicyViolationHandler>(policyViolationHandlerFactory));
 }
Exemplo n.º 5
0
 internal ViolationHandlerConfigurationBase(ViolationConfiguration violationConfiguration)
 {
     ViolationConfiguration = violationConfiguration ?? throw new ArgumentNullException(nameof(violationConfiguration));
 }