Understanding Unity Named Registration and ResolveAll

added by tdupont
2/2/2014 5:48:01 PM

19 Kicks, 142 Views

Unity is a very powerful tool, it is an extensible industrial strength container that comes equipped with a ton of features right out of box; however those features are not always discoverable or even intuitive. For example, the ResolveAll method is only for use with named registrations. Equally interesting is how ResolveAll returns you an IEnumerable by reference. This might sound neat, but it raises a few big questions...


0 comments