As detailed in this Microsoft article they suggest you stop creating your own instances of the HttpClient class. Instead they want you to use IHttpClientFactory which handles the lifetime of the instance for you.
Are there any plans to change HttpService to use IHttpClientFactory? If not, is there a way I can pass in an instance of HttpClient myself so I can use my own instance of IHttpClientFactory?
As detailed in this Microsoft article they suggest you stop creating your own instances of the
HttpClientclass. Instead they want you to useIHttpClientFactorywhich handles the lifetime of the instance for you.Are there any plans to change
HttpServiceto useIHttpClientFactory? If not, is there a way I can pass in an instance ofHttpClientmyself so I can use my own instance ofIHttpClientFactory?