Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ private static async Task<User[]> GetUsersAsyncByLINQ(IEnumerable<int> userIds)

// <ExtractDataFromNetwork>
[HttpGet, Route("DotNetCount")]
static public async Task<int> GetDotNetCount(string URL)
static public async Task<int> 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;
Expand All @@ -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;
}
Expand Down
Loading