public TransactionBehaviour(AppDbContext dbContext,
                             IAppIntegrationEventService orderingIntegrationEventService,
                             ILogger <TransactionBehaviour <TRequest, TResponse> > logger)
 {
     _dbContext = dbContext ?? throw new ArgumentException(nameof(AppDbContext));
     _appIntegrationEventService = orderingIntegrationEventService ?? throw new ArgumentException(nameof(orderingIntegrationEventService));
     _logger = logger ?? throw new ArgumentException(nameof(ILogger));
 }
예제 #2
0
 public ToDoItemCompletedDomainEventHandler(
     IToDoItemRepository todoRepository,
     ILoggerFactory logger,
     IAppIntegrationEventService appIntegrationEventService)
 {
     _todoRepository             = todoRepository ?? throw new ArgumentNullException(nameof(todoRepository));
     _logger                     = logger ?? throw new ArgumentNullException(nameof(logger));
     _appIntegrationEventService = appIntegrationEventService;
 }