private async Task DownloadFile(SymbolServerClient client, string lookupKey) { try { string path = await client.GetFilePath(lookupKey); WriteLine("SUCCESS: " + path); } catch (Exception e) { WriteLine("FAIL: " + lookupKey + ": " + e.Message); } }
public async Task DownloadFiles() { SymbolServerClient client = new SymbolServerClient(_cachePath, _symbolServerPath); await Task.WhenAll(GetLookupKeys(_dumpFilePath).Select(k => DownloadFile(client, k))); }