public PricesService(IPricesRepository pricesRepository, IPricesCacheRepository pricesCacheRepository, IOptions <PricesSettings> settings) { _pricesRepository = pricesRepository; _pricesCacheRepository = pricesCacheRepository; _settings = settings.Value; }
public ProductsService(IProductsRepository productsRepository, IPricesCacheRepository pricesCacheRepository, IProductCacheRepository productCacheRepository, IOptions <ProductsSettings> settings, ISelfHttpClient selfHttpClient) { _productsRepository = productsRepository; _selfHttpClient = selfHttpClient; _pricesCacheRepository = pricesCacheRepository; _productCacheRepository = productCacheRepository; _settings = settings.Value; }