We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8b5688 commit acab42dCopy full SHA for acab42d
docs/csharp/async.md
@@ -127,7 +127,7 @@ public async Task<int> GetDotNetCountAsync()
127
{
128
// Suspends GetDotNetCountAsync() to allow the caller (the web server)
129
// to accept another request, rather than blocking on this one.
130
- var html = await _httpClient.DownloadStringAsync("http://dotnetfoundation.org");
+ var html = await _httpClient.GetStringAsync("http://dotnetfoundation.org");
131
132
return Regex.Matches(html, @"\.NET").Count;
133
}
0 commit comments