public async Task <IEnumerable <BargainDataPoint> > GetDataAsync() { if (cachedList == null) { string fileContent = await fileContentProvider.GetFileContentAsync(); cachedList = CurrencyExchangeCsvParser.Parse(fileContent); } return(cachedList); }
public async Task <IEnumerable <BargainDataPoint> > GetDataAsync() { string fileContent = await httpClient.GetStringAsync("api/get-usdjpy-exchange-data"); return(CurrencyExchangeCsvParser.Parse(fileContent)); }