public TransactionBehaviour(DataContext dbContext, ISellerIntegrationEventService orderingIntegrationEventService, ILogger <TransactionBehaviour <TRequest, TResponse> > logger) { _dbContext = dbContext ?? throw new ArgumentException(nameof(DataContext)); _sellerIntegrationEventService = orderingIntegrationEventService ?? throw new ArgumentException(nameof(orderingIntegrationEventService)); _logger = logger ?? throw new ArgumentException(nameof(ILogger)); }
public Handler(DataContext context, ISellerIntegrationEventService sellerIntegrationEventService) { _context = context; _sellerIntegrationEventService = sellerIntegrationEventService; }