WebServiceRequestSettings.GetHttpClient property

A delegate that, if set, is called to retrieve an HttpClient. If this property is set, then the consumer is responsible for the entire lifetime of the HttpClient, including disposal.

public Func<HttpClient>? GetHttpClient { get; set; }

Remarks

If this property is set, then CookieManager, DisableAutoRedirect, DefaultTimeout, and Timeout are ignored.

See Also