private readonly int _newsCacheExpiry = 20; //in minutes

        public InvestagramsApiCachedService(IStockApiRepository apiRepository,
                                            ISocialApiRepository socialApiRepository,
                                            ICalendarApiRepository calendarApiRepository,
                                            ICachingFactory cacheFactory,
                                            ISettingService settingService,
                                            IStockMarketStatusRepository marketStatusRepository)
            : base(apiRepository, socialApiRepository, calendarApiRepository)
        {
            _settingService         = settingService;
            _marketStatusRepository = marketStatusRepository;
            _cache = cacheFactory.GetCacheService();
        }
Esempio n. 2
0
 public StockService(IDatabaseFactory databaseFactory, ISettingService settingService,
                     IRepository <Stock> stockRepository,
                     IStockHistoryRepository stockHistoryRepository, ICachingFactory cacheFactory,
                     ICookieProviderService cookieProviderService, IInvestagramsApiCachedService investagramsApiService,
                     IStockScoreService stockScoreService, IStockMarketStatusRepository stockMarketStatusRepository, ICandleStickAnalyzerService candleStickAnalyzerService, IEventRepository eventRepository)
 {
     _databaseFactory             = databaseFactory;
     _settingService              = settingService;
     _stockRepository             = stockRepository;
     _stockHistoryRepository      = stockHistoryRepository;
     _cookieProviderService       = cookieProviderService;
     _investagramsApiService      = investagramsApiService;
     _stockScoreService           = stockScoreService;
     _stockMarketStatusRepository = stockMarketStatusRepository;
     _candleStickAnalyzerService  = candleStickAnalyzerService;
     _eventRepository             = eventRepository;
     _cache = cacheFactory.GetCacheService();
 }
Esempio n. 3
0
 public EventRepository(IDatabaseFactory databaseFactory, ICachingFactory cacheFactory, IStockMarketStatusRepository stockMarketStatusRepository) : base(databaseFactory.GetContext())
 {
     _cache = cacheFactory.GetCacheService();
     _stockMarketStatusRepository = stockMarketStatusRepository;
 }