コード例 #1
0
    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);
    }
コード例 #2
0
 protected async Task <TeamHistory> getHistory(int teamId)
 {
     return(await _client.getHistory(teamId));
 }