IMsalHttpClientFactory Interface

Definition

Factory responsible for creating HttpClient .Net recommends to use a single instance of HttpClient.

public interface IMsalHttpClientFactory
type IMsalHttpClientFactory = interface
Public Interface IMsalHttpClientFactory

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/msal-net-application-configuration.

Applies to