-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Closed
Labels
area-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsfeature-httpclientfactoryIncludes: HttpClientFactory (some bugs also in Extensions repo)Includes: HttpClientFactory (some bugs also in Extensions repo)question
Milestone
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?
kierenj, breenbob, erndob, wp1107, bqstony and 65 more
Metadata
Metadata
Assignees
Labels
area-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsfeature-httpclientfactoryIncludes: HttpClientFactory (some bugs also in Extensions repo)Includes: HttpClientFactory (some bugs also in Extensions repo)question