Пример #1
0
 public ShareHistoryService(
     ICacheProvider <ShareHistoryData> cacheProvider,
     ILogger <ShareHistoryService> logger,
     IHttpClientService httpClientService,
     ShareSourceService shareSourceService,
     EtfSourceService etfSourceService,
     SecurityStaticDataService staticDataService,
     IOptions <HistoryOptions <Share> > config) : base(cacheProvider, logger)
 {
     _httpClientService  = httpClientService;
     _staticDataService  = staticDataService;
     _shareSourceService = shareSourceService;
     _etfSourceService   = etfSourceService;
     _config             = config.Value;
 }
Пример #2
0
 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;
 }