/// <summary> /// Uses a specific <see cref="IAuthHttpClientFactory"/> to communicate /// with the IdP. This enables advanced scenarios such as setting a proxy, /// or setting the Agent. /// </summary> /// <param name="httpClientFactory">HTTP client factory.</param> /// <remarks>MSAL does not guarantee that it will not modify the HttpClient, for example by adding new headers.</remarks> /// <returns>The builder to chain the .With methods.</returns> public T WithHttpClientFactory(IAuthHttpClientFactory httpClientFactory) { Config.HttpClientFactory = httpClientFactory; return((T)this); }
public HttpManager(IAuthHttpClientFactory httpClientFactory = null) { _httpClientFactory = httpClientFactory ?? new HttpClientFactory(); }