Thursday, 15 March 2012

c# - Ninject - basic use -



c# - Ninject - basic use -

i have class ninject

but don't know ninject hight.

why must type method?

protected override icontroller getcontrollerinstance( system.web.routing.requestcontext requestcontext, system.type controllertype) { homecoming controllertype == null ? null : (icontroller)ninjectkernel.get(controllertype); }

ninject ioc (inversion of control) package.

the code typing, asks ninject container find controller specified type.

c# asp.net-mvc dependency-injection ninject

No comments:

Post a Comment