C# Class Ninject.Web.WebApi.NinjectWebApiHttpApplicationPlugin

The web plugin implementation for MVC
Inheritance: Ninject.Components.NinjectComponent, INinjectHttpApplicationPlugin
Mostrar archivo Open project: ninject/Ninject.Web.WebApi

Public Methods

Method Description
GetRequestScope ( IContext context ) : object

Gets the request scope.

NinjectWebApiHttpApplicationPlugin ( IKernel kernel, IWebApiRequestScopeProvider webApiRequestScopeProvider ) : System.Linq

Initializes a new instance of the NinjectWebApiHttpApplicationPlugin class.

Start ( ) : void

Starts this instance.

Stop ( ) : void

Stops this instance.

Protected Methods

Method Description
CreateDependencyResolver ( ) : IDependencyResolver

Creates the controller factory that is used to create the controllers.

Method Details

CreateDependencyResolver() protected method

Creates the controller factory that is used to create the controllers.
protected CreateDependencyResolver ( ) : IDependencyResolver
return IDependencyResolver

GetRequestScope() public method

Gets the request scope.
public GetRequestScope ( IContext context ) : object
context IContext The context.
return object

NinjectWebApiHttpApplicationPlugin() public method

Initializes a new instance of the NinjectWebApiHttpApplicationPlugin class.
public NinjectWebApiHttpApplicationPlugin ( IKernel kernel, IWebApiRequestScopeProvider webApiRequestScopeProvider ) : System.Linq
kernel IKernel The kernel.
webApiRequestScopeProvider IWebApiRequestScopeProvider The web API request scope provider.
return System.Linq

Start() public method

Starts this instance.
public Start ( ) : void
return void

Stop() public method

Stops this instance.
public Stop ( ) : void
return void