Geeks With Blogs
AngelEyes on .Net Tips, tricks and WTFs about Asp .Net, SQL Server and the likes. December 2011 Entries
A short summary about DI and using Ninject not as a Service Locator
Note: This post was edited on 21st December 2011, after the first comment was left by Remo Gloor .Using Ninject in a classic DI scenario, means that only the entry point of you code should have knowledge about Ninject. This is different than using it as a Service Locator, where either all classes know about the IoC Container (Ninject, in this case) and access it, meaning that every class is implicitly coupled with it. or, you have to pass the Service Locator as an argument to every class's constructor, ......

Posted On Monday, December 12, 2011 5:19 PM

IoC Container != DI
Well, after reading the following article, I figured the case Paul Hiles makes is not bad. Not every one wants or needs DI, and granted, in many cases moving from a "IoC Container used as a Service Locator" solution to a "real dependency injection" solution might just be not worth it, I believe that it's a better structure, especially if you're writing from scratch. I'm not writing from scratch, and ......

Posted On Thursday, December 8, 2011 4:03 PM

Copyright © AngelEyes | Powered by: