Use HttpClient the correct way to avoid socket exceptions

Опубликовано: 12 Март 2025
на канале: Round The Code
1,424
70

We'll show you the best practices to make a GET request using HttpClient in an ASP.NET Core app using IHttpClientFactory.

We'll also show you some of the other ways that are not recommended.

Finally, we'll bind a JSON response to an object that we can use as part of an API response.

► Read the tutorial:
https://www.roundthecode.com/dotnet-t...

🎓 .NET tutorials, code examples and coding challenges 🎓
https://www.roundthecode.com/?utm_sou...

► Chapters
0:00 The different ways of using HttpClient
5:44 Bind a JSON response to an object
9:05 Other HTTP methods