Example #1
0
 public CommandTrigger(ICommandHandler[] commandHandlers,
                       IHttpContextAccessor httpContextAccessor,
                       ICommandAuditWriter commandAuditWriter,
                       IDeploymentScopeRepository deploymentScopeRepository,
                       IValidatorProvider validatorProvider)
 {
     this.commandHandlers           = commandHandlers ?? throw new ArgumentNullException(nameof(commandHandlers));
     this.httpContextAccessor       = httpContextAccessor ?? throw new ArgumentNullException(nameof(httpContextAccessor));
     this.commandAuditWriter        = commandAuditWriter ?? throw new ArgumentNullException(nameof(commandAuditWriter));
     this.deploymentScopeRepository = deploymentScopeRepository ?? throw new ArgumentNullException(nameof(deploymentScopeRepository));
     this.validatorProvider         = validatorProvider ?? throw new ArgumentNullException(nameof(validatorProvider));
 }
Example #2
0
 public CommandTrigger(IHttpContextAccessor httpContextAccessor, ICommandAuditWriter commandAuditWriter)
 {
     this.httpContextAccessor = httpContextAccessor ?? throw new ArgumentNullException(nameof(httpContextAccessor));
     this.commandAuditWriter  = commandAuditWriter ?? throw new ArgumentNullException(nameof(commandAuditWriter));
 }
 public CommandAuditActivity(ICommandAuditWriter commandAuditWriter)
 {
     this.commandAuditWriter = commandAuditWriter ?? throw new ArgumentNullException(nameof(commandAuditWriter));
 }
Example #4
0
 public MonitorTrigger(ICommandAuditWriter commandAuditWriter)
 {
     this.commandAuditWriter = commandAuditWriter ?? throw new ArgumentNullException(nameof(commandAuditWriter));
 }