public CurrencyHistoryService( ICacheProvider <CurrencyHistoryData> cacheProvider, ILogger <CurrencyHistoryService> logger, IHttpClientService httpClientService, CurrencySourceService currencySourceService, SecurityStaticDataService staticDataService, IOptions <HistoryOptions <Currency> > config) : base(cacheProvider, logger) { _httpClientService = httpClientService; _currencySourceService = currencySourceService; _staticDataService = staticDataService; _config = config.Value; }
public MinuteHistoryService( IHttpClientService getService, SecurityStaticDataService staticDataService, ShareSourceService shareSourceService, BondSourceService bondSourceService, EtfSourceService etfSourceService, CurrencySourceService currencySourceService, ICacheProvider <TimeStampHistoryData> cache, IOptions <MinuteHistoryOptions> conf, ILogger <MinuteHistoryService> logger) { _logger = logger; _getService = getService; _staticDataService = staticDataService; _shareSourceService = shareSourceService; _bondSourceService = bondSourceService; _etfSourceService = etfSourceService; _currencySourceService = currencySourceService; _conf = conf.Value; _cache = cache; }