Try our conversational search powered by Generative AI!

Service Registration - Single interface multiple implementation


I have scenario in which i have single interface with multiple implementation, but i can't get all instance in service locator

When i use the service locator, the last registered service to the interface is all i can get. 

Jun 20, 2022 5:36

Constructor parameter injection and IEnumerable, like this?

Edited, Jun 20, 2022 8:34
Mark Malinao - Jun 20, 2022 8:36
Yes, i've found that earlier on. Its the exception error that confuses me. This has been resolved
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.