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();
        }
Exemple #2
0
 public InvestagramsApiService(IStockApiRepository apiRepository, ISocialApiRepository socialApiRepository, ICalendarApiRepository calendarApiRepository)
 {
     _stockApiRepository    = apiRepository;
     _socialApiRepository   = socialApiRepository;
     _calendarApiRepository = calendarApiRepository;
 }
 public void OneTimeSetup()
 {
     _investagramsApiRepository = new CalendarApiRepository(_cookieProviderService);
 }