File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
docs/csharp/asynchronous-programming/snippets/async-scenarios Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -147,9 +147,9 @@ private static async Task<User[]> GetUsersAsyncByLINQ(IEnumerable<int> userIds)
147
147
148
148
// <ExtractDataFromNetwork>
149
149
[ HttpGet , Route ( "DotNetCount" ) ]
150
- static public async Task < int > GetDotNetCount ( string URL )
150
+ static public async Task < int > GetDotNetCountAsync ( string URL )
151
151
{
152
- // Suspends GetDotNetCount () to allow the caller (the web server)
152
+ // Suspends GetDotNetCountAsync () to allow the caller (the web server)
153
153
// to accept another request, rather than blocking on this one.
154
154
var html = await s_httpClient . GetStringAsync ( URL ) ;
155
155
return Regex . Matches ( html , @"\.NET" ) . Count ;
@@ -164,7 +164,7 @@ static async Task Main()
164
164
int total = 0 ;
165
165
foreach ( string url in s_urlList )
166
166
{
167
- var result = await GetDotNetCount ( url ) ;
167
+ var result = await GetDotNetCountAsync ( url ) ;
168
168
Console . WriteLine ( $ "{ url } : { result } ") ;
169
169
total += result ;
170
170
}
You can’t perform that action at this time.
0 commit comments