示例#1
0
 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));
 }
示例#2
0
 public Handler(DataContext context, ISellerIntegrationEventService sellerIntegrationEventService)
 {
     _context = context;
     _sellerIntegrationEventService = sellerIntegrationEventService;
 }