Esempio n. 1
0
 public PublishEventsBehavior(ProductsDbContext dbContext,
                              IProductCatalogueIntegrationEventService integrationService,
                              ILogger <PublishEventsBehavior <TRequest, TResponse> > logger)
 {
     _dbContext          = dbContext;
     _integartionService = integrationService;
     _logger             = logger;
 }
 public AddNewProductCommandHandler(IProductRepository productRepository,
                                    IProductCatalogueIntegrationEventService eventService)
 {
     _productRepository = productRepository;
     _eventService      = eventService;
 }