Esempio n. 1
0
 public TransactionBehaviour(DeliveryContext dbContext,
                             IDeliveryIntegrationEventService deliveryIntegrationEventService,
                             ILogger <TransactionBehaviour <TRequest, TResponse> > logger)
 {
     _dbContext = dbContext ?? throw new ArgumentException(nameof(DeliveryContext));
     _deliveryIntegrationEventService = deliveryIntegrationEventService ??
                                        throw new ArgumentException(nameof(deliveryIntegrationEventService));
     _logger = logger ?? throw new ArgumentException(nameof(ILogger));
 }
Esempio n. 2
0
 public DeliveryCreatedDomainEventHandler(IDeliveryIntegrationEventService deliveryIntegrationEventService)
 {
     _deliveryIntegrationEventService = deliveryIntegrationEventService;
 }