public ApiController( TickerService tickerService, CurrencyService currencyService, IMemoryCache memoryCache, IOptions <NakoSettings> nakoApiSettings) { _tickerService = tickerService; _currencyService = currencyService; _memoryCache = memoryCache; _nakoApiSettings = nakoApiSettings.Value; }
public BlockExplorerController(IMemoryCache memoryCache, BlockIndexService indexService, IOptions <NakoSettings> nakoApiSettings, IOptions <SetupSettings> setupSettings, IOptions <FeaturesSettings> featuresSettings) { _memoryCache = memoryCache; _stats = JsonConvert.DeserializeObject(_memoryCache.Get("BlockchainStats").ToString()); _indexService = indexService; _nakoApiSettings = nakoApiSettings.Value; _setupSettings = setupSettings.Value; _featuresSettings = featuresSettings.Value; }
public DataUpdateService( BlockIndexService blockIndexService, TickerService tickerService, CurrencyService currencyService, IMemoryCache memoryCache, UpdateHub hub, IHubContext <UpdateHub> hubContext, IOptions <NakoSettings> nakoSettings, IOptions <TickerSettings> tickerSettings) { _tickerService = tickerService; _blockIndexService = blockIndexService; _memoryCache = memoryCache; _hub = hub; _hubContext = hubContext; _nakoApiSettings = nakoSettings.Value; _tickerSettings = tickerSettings.Value; _currencyService = currencyService; _nakoTimer = new System.Timers.Timer(); _tickerTimer = new System.Timers.Timer(); _currencyTimer = new System.Timers.Timer(); }
public BlockIndexService(IOptions <NakoSettings> nakoSettings) : base(nakoSettings.Value.ApiUrl) { _nakoSettings = nakoSettings.Value; }
public TickerService(IMemoryCache memoryCache, IOptions <NakoSettings> nakoApiSettings, IOptions <TickerSettings> tickerSettings) : base(nakoApiSettings.Value.ApiUrl) { _memoryCache = memoryCache; _nakoApiSettings = nakoApiSettings.Value; _tickerSettings = tickerSettings.Value; }