Beispiel #1
0
 public ProductsService(
     CatalogContext catalogContext,
     IProductIndexingRepository productIndexingRepository,
     ILogger <ProductsService> logger)
 {
     this.catalogContext            = catalogContext;
     this.productIndexingRepository = productIndexingRepository;
     this.logger = logger;
 }
Beispiel #2
0
 public ProductsService(
     IEventBus eventBus,
     CatalogContext catalogContext,
     IProductSearchRepository productSearchRepository,
     IProductIndexingRepository productIndexingRepository,
     IStringLocalizer <GlobalResources> globalLocalizer,
     IStringLocalizer <ProductResources> productLocalizer)
 {
     this.eventBus                  = eventBus;
     this.catalogContext            = catalogContext;
     this.productSearchRepository   = productSearchRepository;
     this.productIndexingRepository = productIndexingRepository;
     this.globalLocalizer           = globalLocalizer;
     this.productLocalizer          = productLocalizer;
 }