I am curious what is the purpose of the HttpClientFactory class. There is no description of why it exists on MSDN (see link).
There are Create methods with more spec
As mentioned in
https://docs.microsoft.com/en-us/dotnet/architecture/microservices/implement-resilient-applications/use-httpclientfactory-to-implement-resilient-http-requests#issues-with-the-original-httpclient-class-available-in-net-core
The
default constructor for
HttpClient
has sockets exhaustion and DNS changes issues, which are addressed by IHttpClientFactory. It also provide extensions for adding resiliency to the application.