Exemplo n.º 1
0
 public ProductViewSoldDataUpdater(
     IProductViewCacheKeyProvider productViewCacheKeyProvider,
     IDistributedCache <ProductViewCacheItem> cache)
 {
     _productViewCacheKeyProvider = productViewCacheKeyProvider;
     _cache = cache;
 }
Exemplo n.º 2
0
 public ProductViewAppService(
     IProductViewCacheKeyProvider productViewCacheKeyProvider,
     IDistributedCache <ProductViewCacheItem> cache,
     IProductAppService productAppService,
     IProductViewRepository repository) : base(repository)
 {
     _productViewCacheKeyProvider = productViewCacheKeyProvider;
     _cache             = cache;
     _productAppService = productAppService;
     _repository        = repository;
 }
Exemplo n.º 3
0
 public ProductAppService(
     IProductManager productManager,
     IOptions <EShopProductsOptions> options,
     IDistributedCache <ProductViewCacheItem> cache,
     IProductInventoryProvider productInventoryProvider,
     IProductViewCacheKeyProvider productViewCacheKeyProvider,
     IAttributeOptionIdsSerializer attributeOptionIdsSerializer,
     IProductRepository repository) : base(repository)
 {
     _productManager               = productManager;
     _cache                        = cache;
     _options                      = options.Value;
     _productInventoryProvider     = productInventoryProvider;
     _productViewCacheKeyProvider  = productViewCacheKeyProvider;
     _attributeOptionIdsSerializer = attributeOptionIdsSerializer;
     _repository                   = repository;
 }