Using Ninject 2 MVC 3. Correct me if I am wrong, but I have seen two ways to use Ninject in an MVC 3 application. We can use a new factory controller that looks like ControllerBuilder.Current.SetControllerFactory (new NinjectControllerFactory ()); or using NinjectHttpApplication, and then configure the kernel.
I was interested to know what is the difference between using a factory controller and NinjectHttpApplication to configure bindings for DI?
And what is the best place to install DI?
source
share