0 Flares 0 Flares ×
This week I’ve taken my first dive into an IOC container by looking at Ninject. I’ve been toying with this for some time and have struggled to understand the actual cost benefit. There’s a few really interesting debates on this, and I’m still on the fence! Having manually coded dependency injection for years, I’m still unconvinced of the benefits of an IOC container – its not hard to implement dependency injection, and sometimes the ioc containers seem to complicate things – but I figured the best way to make my mind up was to give it a go.
I chose Ninject as everything I’ve read suggests its one of the simplest ones to get up and running. It wasn’t just because its includes lots of references to ninja’s – honest!! I also chose to install using NuGet – which is brilliant by the way!!!
This is a great article for getting started with the ninject wcf extension: http://www.aaronstannard.com/post/2011/08/16/dependency-injection-ninject-wcf-service.aspx
Nice couple of articles for using ninject for AOP: