C# Class Ninject.Modules.NinjectModule

A loadable unit that defines bindings for your application.
Inheritance: BindingRoot, INinjectModule
Afficher le fichier Open project: ninject/Ninject Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
NinjectModule ( ) : System

Initializes a new instance of the NinjectModule class.

Method Details

AddBinding() public méthode

Registers the specified binding.
public AddBinding ( IBinding binding ) : void
binding IBinding The binding to add.
Résultat void

Load() public abstract méthode

Loads the module into the kernel.
public abstract Load ( ) : void
Résultat void

NinjectModule() protected méthode

Initializes a new instance of the NinjectModule class.
protected NinjectModule ( ) : System
Résultat System

OnLoad() public méthode

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

OnUnload() public méthode

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

OnVerifyRequiredModules() public méthode

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

RemoveBinding() public méthode

Unregisters the specified binding.
public RemoveBinding ( IBinding binding ) : void
binding IBinding The binding to remove.
Résultat void

Unbind() public méthode

Unregisters all bindings for the specified service.
public Unbind ( Type service ) : void
service System.Type The service to unbind.
Résultat void

Unload() public méthode

Unloads the module from the kernel.
public Unload ( ) : void
Résultat void

VerifyRequiredModulesAreLoaded() public méthode

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