asp.net mvc 3 - Difference between use of a controller factory and NinjectHttpApplication? -
using ninject 2 mvc 3. correct me if wrong ive seen 2 way of using ninject in mvc 3 application. can use new controller factory controllerbuilder.current.setcontrollerfactory(new ninjectcontrollerfactory()); or using ninjecthttpapplication , configure kernel.
i wondering difference between use of controller factory , ninjecthttpapplication configure binding di?
and best place setup di ?
ninjecthttpapplication calls controllerbuilder.current.setcontrollerfactory(new ninjectcontrollerfactory()) internally.
but additionally sets various bindings , provides many new features. in other words it's less work , adds new features. best read blog post mvc3 extension. http://www.planetgeek.ch/2010/11/13/official-ninject-mvc-extension-gets-support-for-mvc3/
Comments
Post a Comment