2using System.Net.Http.Headers;
17 client.DefaultRequestHeaders.UserAgent.Add(
userAgent);
IAbstractHttpClientFactory that creates HttpClients.
IHttpClient CreateClient()
Create a IHttpClient.A new IHttpClient.
readonly ProductInfoHeaderValue userAgent
The ProductInfoHeaderValue used as created client's User-Agent header on request.
HttpClientFactory(ProductInfoHeaderValue userAgent)
Initializes a new instance of the HttpClientFactory class.
For sending HTTP requests.