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)
147147
148148 // <ExtractDataFromNetwork>
149149 [ HttpGet , Route ( "DotNetCount" ) ]
150- static public async Task < int > GetDotNetCount ( string URL )
150+ static public async Task < int > GetDotNetCountAsync ( string URL )
151151 {
152- // Suspends GetDotNetCount () to allow the caller (the web server)
152+ // Suspends GetDotNetCountAsync () to allow the caller (the web server)
153153 // to accept another request, rather than blocking on this one.
154154 var html = await s_httpClient . GetStringAsync ( URL ) ;
155155 return Regex . Matches ( html , @"\.NET" ) . Count ;
@@ -164,7 +164,7 @@ static async Task Main()
164164 int total = 0 ;
165165 foreach ( string url in s_urlList )
166166 {
167- var result = await GetDotNetCount ( url ) ;
167+ var result = await GetDotNetCountAsync ( url ) ;
168168 Console . WriteLine ( $ "{ url } : { result } ") ;
169169 total += result ;
170170 }
You can’t perform that action at this time.
0 commit comments