Understanding Unity Named Registration and ResolveAll

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


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