public ProductsService(
     CatalogContext catalogContext,
     IProductIndexingRepository productIndexingRepository,
     ILogger <ProductsService> logger)
 {
     this.catalogContext            = catalogContext;
     this.productIndexingRepository = productIndexingRepository;
     this.logger = logger;
 }
 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;
 }