News

However, if you use HttpClient as it was intended (asynchronously), then the code gets simpler. If I use await and async, as shown in Listing 4, the code isn’t quite as short as with the WebClient … ...
In the new project, create a new API controller and save it using the default name, i.e., ValuesController. We’ll use this project in the sections that follow. HttpClient challenges ...