diff --git a/docs/csharp/asynchronous-programming/snippets/async-scenarios/Program.cs b/docs/csharp/asynchronous-programming/snippets/async-scenarios/Program.cs index b386d1ddad6a9..fc847ba26edbc 100644 --- a/docs/csharp/asynchronous-programming/snippets/async-scenarios/Program.cs +++ b/docs/csharp/asynchronous-programming/snippets/async-scenarios/Program.cs @@ -147,9 +147,9 @@ private static async Task GetUsersAsyncByLINQ(IEnumerable userIds) // [HttpGet, Route("DotNetCount")] - static public async Task GetDotNetCount(string URL) + static public async Task GetDotNetCountAsync(string URL) { - // Suspends GetDotNetCount() to allow the caller (the web server) + // Suspends GetDotNetCountAsync() to allow the caller (the web server) // to accept another request, rather than blocking on this one. var html = await s_httpClient.GetStringAsync(URL); return Regex.Matches(html, @"\.NET").Count; @@ -164,7 +164,7 @@ static async Task Main() int total = 0; foreach (string url in s_urlList) { - var result = await GetDotNetCount(url); + var result = await GetDotNetCountAsync(url); Console.WriteLine($"{url}: {result}"); total += result; }