IHttpClientFactory Interface

Definition

Factory responsible for creating HttpClient(s); .Net recommends to use a single instance of HttpClient

public interface IHttpClientFactory
type IHttpClientFactory = interface
Public Interface IHttpClientFactory

Remarks

Implementations must be thread safe. Consider creating and configuring an HttpClient in the constructor of the factory, and returning the same object in GetHttpClient()

Methods

GetHttpClient()

Method returning an Http client that will be used to communicate with Azure AD. This enables advanced scenarios. See https://aka.ms/adal-net-application-configuration

Applies to