C# 클래스 Ninject.Modules.NinjectModule

A loadable unit that defines bindings for your application.
상속: BindingRoot, INinjectModule
파일 보기 프로젝트 열기: ninject/Ninject 1 사용 예제들

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
AddBinding ( IBinding binding ) : void

Registers the specified binding.

Load ( ) : void

Loads the module into the kernel.

OnLoad ( IKernelConfiguration kernelConfiguration ) : void

Called when the module is loaded into a kernel.

OnUnload ( IKernelConfiguration kernelConfiguration ) : void

Called when the module is unloaded from a kernel.

OnVerifyRequiredModules ( ) : void

Called after loading the modules. A module can verify here if all other required modules are loaded.

RemoveBinding ( IBinding binding ) : void

Unregisters the specified binding.

Unbind ( Type service ) : void

Unregisters all bindings for the specified service.

Unload ( ) : void

Unloads the module from the kernel.

VerifyRequiredModulesAreLoaded ( ) : void

Called after loading the modules. A module can verify here if all other required modules are loaded.

보호된 메소드들

메소드 설명
NinjectModule ( ) : System

Initializes a new instance of the NinjectModule class.

메소드 상세

AddBinding() 공개 메소드

Registers the specified binding.
public AddBinding ( IBinding binding ) : void
binding IBinding The binding to add.
리턴 void

Load() 공개 추상적인 메소드

Loads the module into the kernel.
public abstract Load ( ) : void
리턴 void

NinjectModule() 보호된 메소드

Initializes a new instance of the NinjectModule class.
protected NinjectModule ( ) : System
리턴 System

OnLoad() 공개 메소드

Called when the module is loaded into a kernel.
public OnLoad ( IKernelConfiguration kernelConfiguration ) : void
kernelConfiguration IKernelConfiguration The kernel configuration that is loading the module.
리턴 void

OnUnload() 공개 메소드

Called when the module is unloaded from a kernel.
public OnUnload ( IKernelConfiguration kernelConfiguration ) : void
kernelConfiguration IKernelConfiguration The kernel configuration that is unloading the module.
리턴 void

OnVerifyRequiredModules() 공개 메소드

Called after loading the modules. A module can verify here if all other required modules are loaded.
public OnVerifyRequiredModules ( ) : void
리턴 void

RemoveBinding() 공개 메소드

Unregisters the specified binding.
public RemoveBinding ( IBinding binding ) : void
binding IBinding The binding to remove.
리턴 void

Unbind() 공개 메소드

Unregisters all bindings for the specified service.
public Unbind ( Type service ) : void
service System.Type The service to unbind.
리턴 void

Unload() 공개 메소드

Unloads the module from the kernel.
public Unload ( ) : void
리턴 void

VerifyRequiredModulesAreLoaded() 공개 메소드

Called after loading the modules. A module can verify here if all other required modules are loaded.
public VerifyRequiredModulesAreLoaded ( ) : void
리턴 void