Basic HttpClient in ASP.NET Core

preview_player
Показать описание
Using HttpClient in Asp.Net Core apps is something we do very often. The only right way to do it is by leveraging IHttpClientFactory. This feature can be used in 4 different flavors. In this video, we'll concentrate only on the basic usage scenario.
#dotnet #aspnetcore #shorts #programming
Join this channel to get source code access and other perks:

Also follow me here (especially if you are a self taught developer):

My setup:
Рекомендации по теме
Комментарии
Автор

This is neat, thank you. Much less work required to manage the use of httpclient from port exhaustion

Bugaluggit
Автор

Hi
Today i add the logic to Ihttpclientfactory .
At the time of construction of ihttpclientfactroy its giving null why ?

murgan
Автор

Is it okay to use a singleton HttpClient that resides in a RestService class, that other classes inherit, thus there being only one HttpClient in the entire app's lifetime?

anttkal
Автор

Don't we need to release httpclient instace after use?

AndriyBezkorovayny