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
* 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.