public TransactionBehaviour(AttachmentContext dbContext, IAttachmentIntegrationEventService orderingIntegrationEventService, ILogger <TransactionBehaviour <TRequest, TResponse> > logger) { _dbContext = dbContext ?? throw new ArgumentException(nameof(AttachmentContext)); _orderingIntegrationEventService = orderingIntegrationEventService ?? throw new ArgumentException(nameof(orderingIntegrationEventService)); _logger = logger ?? throw new ArgumentException(nameof(ILogger)); }
public RequestUniWhenAttachmentCreatedDomainEventHandler( ILoggerFactory logger, IAttachmentRepository attachmentRepository, IAttachmentIntegrationEventService attachmentIntegrationEventService) { _attachmentRepository = attachmentRepository ?? throw new ArgumentNullException(nameof(attachmentRepository)); _attachmentIntegrationEventService = attachmentIntegrationEventService ?? throw new ArgumentNullException(nameof(attachmentIntegrationEventService)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }