C# Класс Ninject.Web.WebApi.NinjectWebApiHttpApplicationPlugin

The web plugin implementation for MVC
Наследование: Ninject.Components.NinjectComponent, INinjectHttpApplicationPlugin
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
CreateDependencyResolver ( ) : IDependencyResolver

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

Описание методов

CreateDependencyResolver() защищенный Метод

Creates the controller factory that is used to create the controllers.
protected CreateDependencyResolver ( ) : IDependencyResolver
Результат IDependencyResolver

GetRequestScope() публичный Метод

Gets the request scope.
public GetRequestScope ( IContext context ) : object
context IContext The context.
Результат object

NinjectWebApiHttpApplicationPlugin() публичный Метод

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.
Результат System.Linq

Start() публичный Метод

Starts this instance.
public Start ( ) : void
Результат void

Stop() публичный Метод

Stops this instance.
public Stop ( ) : void
Результат void