Skip to content

Instantly share code, notes, and snippets.

@jesuscampos
Last active October 14, 2018 16:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jesuscampos/c26a9006fcf8b8ddf92958b2a33f39e1 to your computer and use it in GitHub Desktop.
Save jesuscampos/c26a9006fcf8b8ddf92958b2a33f39e1 to your computer and use it in GitHub Desktop.
private async Task<string> DoWorkAsync()
{
HttpClient client = new HttpClient();
string result1 = await client.GetStringAsync(url1);
// ...
string result2 = await client.GetStringAsync(url2);
// ...
string result3 = await client.GetStringAsync(url3);
// ...
return $"Results: {result1}{result2}{result3}";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment