C# 클래스 MVC4ServicesBook.Web.Api.App_Start.NinjectConfigurator

Class used to set up the Ninject DI container.
파일 보기 프로젝트 열기: jamiekurtz/Mvc4ServicesBook 1 사용 예제들

공개 메소드들

메소드 설명
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