示例#1
0
    public async Task PreloadCache()
    {
        var tasks = new List <Task>();

        tasks.Add(_client.getFootballers());
        tasks.Add(_client.getBootstrapStatic());
        await Task.WhenAll(tasks);
    }
示例#2
0
 private async Task <IDictionary <int, Footballer> > getFootballers()
 {
     return(await _client.getFootballers());
 }