C# Класс MVC4ServicesBook.Web.Api.App_Start.NinjectConfigurator

Class used to set up the Ninject DI container.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Configure ( IKernel container ) : void

Entry method used by caller to configure the given container with all of this application's dependencies. Also configures the container as this application's dependency resolver.

Приватные методы

Метод Описание
AddBindings ( IKernel container ) : void

Add all bindings/dependencies to the container

ConfigureLog4net ( IKernel container ) : void

Set up log4net for this application, including putting it in the given container.

ConfigureNHibernate ( IKernel container ) : void

Sets up NHibernate, and adds an ISessionFactory to the given container.

CreateSession ( IContext context ) : ISession

Method used to create instances of ISession objects and bind them to the HTTP context.

CreateUserSession ( IContext arg ) : IUserSession

Used to fetch the current thread's principal as an IUserSession object.

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

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

Entry method used by caller to configure the given container with all of this application's dependencies. Also configures the container as this application's dependency resolver.
public Configure ( IKernel container ) : void
container IKernel
Результат void