London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Service Registration - Single interface multiple implementation

Vote:
 

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. 

#282134
Jun 20, 2022 5:36
Vote:
 

Constructor parameter injection and IEnumerable, like this?

https://twitter.com/KarlSolgard/status/1484527534742114306?s=20

#282135
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.