Register multiple instances without naming them
And then resolve all these instances by ResolveAll
-
Sebastian Weber commented
That feature is very easy to retrofit. Have a look at this article in my blog
http://outlawtrail.wordpress.com/2012/08/18/register-multiple-instances-without-naming-them/ -
Konstantin K commented
That feature implemented by all other containers (even MEF). It would be very nice if Unity will be able to do that.
-
Anonymous commented
Great idea. Today I had to throw away Unity because a client sayd, he needs to configure multiple service providers and then scan them all to detect which one responds first. But I cannot use Unity to resolve an array of IServiceProvider instances, so I had to implement my own configuration the old way - with a custom config section, where I can put the classnames of the concrete IServiceProvider implementations.