public CommandHandler(
     IMediatorHandler bus,
     INotificationHandler <DomainNotification> notificationHandler,
     CommandHandlerValidation <TCommand, TResponse> commandValidation)
 {
     _bus = bus ?? throw new ArgumentNullException(nameof(bus));
     _commandValidation   = commandValidation;
     _notificationHandler = notificationHandler;
 }
Beispiel #2
0
 public CommandHandler(IMediatorHandler bus, INotificationHandler <DomainNotification> notificationHandler, CommandHandlerValidation <TCommand, TResponse> commandValidation)
 {
     _bus = bus;
     _commandValidation   = commandValidation;
     _notificationHandler = notificationHandler;
 }