IHttpClientFactory

The ASP.NET Core factory that creates configured HttpClient instances, reusing connections and attaching handlers such as resilience.

In more detail

Creating and disposing HttpClient objects by hand can exhaust network sockets under load. builder.Services.AddHttpClient<IInventoryClient, InventoryClient>() registers a typed client that receives its HttpClient by injection.

Related terms

Taught in

References