public async Task PreloadEntryCache(IEnumerable <int> teamIds, int gameweek) { var tasks = teamIds.Select(async id => await _client.getEntry(id)).ToList(); await Task.WhenAll(teamIds.Select(async id => await _client.getPicks(id, gameweek)).ToList()); await Task.WhenAll(teamIds.Select(async id => await _client.getHistory(id)).ToList()); await Task.WhenAll(tasks); }
protected async Task <TeamHistory> getHistory(int teamId) { return(await _client.getHistory(teamId)); }