Ejemplo n.º 1
0
 public ProductManager(
     IProductRepository productRepository,
     IProductPriceProvider productPriceProvider,
     IProductDetailRepository productDetailRepository,
     IProductCategoryRepository productCategoryRepository,
     IProductInventoryProviderResolver productInventoryProviderResolver,
     IAttributeOptionIdsSerializer attributeOptionIdsSerializer,
     IProductGroupConfigurationProvider productGroupConfigurationProvider)
 {
     _productRepository                 = productRepository;
     _productPriceProvider              = productPriceProvider;
     _productDetailRepository           = productDetailRepository;
     _productCategoryRepository         = productCategoryRepository;
     _productInventoryProviderResolver  = productInventoryProviderResolver;
     _attributeOptionIdsSerializer      = attributeOptionIdsSerializer;
     _productGroupConfigurationProvider = productGroupConfigurationProvider;
 }
Ejemplo n.º 2
0
 public ProductAppService(
     IProductManager productManager,
     IOptions <EShopProductsOptions> options,
     IDistributedCache <ProductViewCacheItem> cache,
     IProductInventoryProviderResolver productInventoryProviderResolver,
     IProductViewCacheKeyProvider productViewCacheKeyProvider,
     IAttributeOptionIdsSerializer attributeOptionIdsSerializer,
     IProductRepository repository) : base(repository)
 {
     _productManager = productManager;
     _cache          = cache;
     _options        = options.Value;
     _productInventoryProviderResolver = productInventoryProviderResolver;
     _productViewCacheKeyProvider      = productViewCacheKeyProvider;
     _attributeOptionIdsSerializer     = attributeOptionIdsSerializer;
     _repository = repository;
 }
Ejemplo n.º 3
0
 public LocalFlashSaleInventoryManager(IProductInventoryProviderResolver productInventoryProviderResolver)
 {
     ProductInventoryProviderResolver = productInventoryProviderResolver;
 }