I suggest you ...

Register multiple instances without naming them

And then resolve all these instances by ResolveAll

44 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    PsyllosPsyllos shared this idea  ·   ·  Admin →

    3 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...
      • Konstantin KKonstantin K commented  · 

        That feature implemented by all other containers (even MEF). It would be very nice if Unity will be able to do that.

      • AnonymousAnonymous 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.

      Feedback and Knowledge Base