File tree Expand file tree Collapse file tree
src/Web/WebMVC/Services/Utilities Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,19 +16,7 @@ public HttpApiClient()
1616 _client = new HttpClient ( ) ;
1717 _logger = new LoggerFactory ( ) . CreateLogger ( nameof ( HttpApiClientWrapper ) ) ;
1818 }
19-
20- // Notice that these (and other methods below) are Task
21- // returning asynchronous methods. But, they do not
22- // have the 'async' modifier, and do not contain
23- // any 'await statements. In each of these methods,
24- // the only asynchronous call is the last (or only)
25- // statement of the method. In those instances,
26- // a Task returning method that does not use the
27- // async modifier is preferred. The compiler generates
28- // synchronous code for this method, but returns the
29- // task from the underlying asynchronous method. The
30- // generated code does not contain the state machine
31- // generated for asynchronous methods.
19+
3220 public Task < string > GetStringAsync ( string uri ) =>
3321 _client . GetStringAsync ( uri ) ;
3422
You can’t perform that action at this time.
0 commit comments