Closed
Description
Is there any way to consume the HttpClientFactory
without using dependency injection, or more precisely without using M.E.DI?
I am creating a client library for which I want to make use of HttpClientFactory but I am going to use this library also in a legacy project that does not not have a M.E.DI-compatible DI.
Ideally, I would just new up a DefaultHttpClientFactory
and consume that directly but since the factory itself is internal, this is not possible.
Why is the HttpClientFactory
internal and is there any way to consume it explicitly without using DI?