private static List <CryptocurrencyApi> GetAllApis() { var cache = new CryptocurrenciesApiCache(); var dictionary = (Dictionary <CryptocurrencyAPIProvider, CryptocurrencyApi>)cache.Get(); return(dictionary.Values.ToList()); }
public static CryptocurrencyApi Get(CryptocurrencyAPIProvider aPIProvider) { var cache = new CryptocurrenciesApiCache(); var dictionary = (Dictionary <CryptocurrencyAPIProvider, CryptocurrencyApi>)cache.Get(); return(dictionary[aPIProvider]); }