Skip to content

Multiple AddHttpClient with different API endpoints #2613

Discussion options

You must be logged in to vote

Unity does not support the concept of:

container.Register<IService, ImplementationA>();
container.Register<IService, ImplementationB>();

container.Resolve<IEnumerable<IService>>();

As I recall this would be required for the HttpClientFactory. If you use DryIoc instead it should work.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@memis1970
Comment options

@memis1970
Comment options

Answer selected by memis1970
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants