Browse by Tags

All Tags » Unity (RSS)

MVC–Unity–challenge answer by Eugenio Pace

  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...
Filed under: ,

Unity and MVC–Resolving types challenge by Eugenio Pace

Imagine you have a situation like this: 2 MVC controllers (A and B) have a dependency on Svc A . 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...
Filed under: , ,
Powered by Community Server (Non-Commercial Edition), by Telligent Systems