internal CoinGeckoBusiness(IConfigurationRoot configuration, IServiceProvider serviceProvider) { Api = (ICoinGeckoApi)serviceProvider.GetService(typeof(ICoinGeckoApi)); }
public PriceJob(ILoggerFactory loggerFactory, ICoinGeckoApi api, IHybridCacheClient cacheClient) : base(loggerFactory) { _api = api; _statsCache = new ScopedHybridCacheClient(cacheClient, CacheScopes.Stats); }