MVC–Unity–challenge answer

  The answer (or better yet, my answer): The proof:   This is leveraging the use of a name when registering a type and using the convention of using the same name for all types in the same context (“A” and “B” in my little sample). Thanks Chris for the suggestion to use this feature….

0

Unity and MVC–Resolving types challenge

Imagine you have a situation like this: 2 MVC controllers (A and B) have a dependency on SvcA. SvcA has a dependency on SvcB and a component implementing IX.SvcB has a dependency on something implementing IY. Every time the system resolves CtrlA we want to provide Y1 and every time it resolves CtrlB, we want…

4