C# Class Ninject.KernelConfiguration

The kernel configuration
Inheritance: BindingRoot, IKernelConfiguration
Mostrar archivo Open project: ninject/Ninject Class Usage Examples

Public Methods

Method Description
AddBinding ( IBinding binding ) : void
BuildReadonlyKernel ( ) : IReadOnlyKernel
GetBindings ( Type service ) : IEnumerable
GetModules ( ) : IEnumerable
HasModule ( string name ) : bool
KernelConfiguration ( ) : System

Initializes a new instance of the KernelConfiguration class.

KernelConfiguration ( IComponentContainer components, INinjectSettings settings ) : System

Initializes a new instance of the KernelConfiguration class.

KernelConfiguration ( INinjectSettings settings ) : System

Initializes a new instance of the KernelConfiguration class.

Load ( IEnumerable assemblies ) : void
Load ( IEnumerable modules ) : void
Load ( IEnumerable filePatterns ) : void
RemoveBinding ( IBinding binding ) : void
Unbind ( Type service ) : void
Unload ( string name ) : void

Protected Methods

Method Description
AddComponents ( ) : void

Adds components to the kernel during startup.

Private Methods

Method Description
CloneBindings ( ) : IBinding>.Multimap

Method Details

AddBinding() public method

public AddBinding ( IBinding binding ) : void
binding IBinding
return void

AddComponents() protected method

Adds components to the kernel during startup.
protected AddComponents ( ) : void
return void

BuildReadonlyKernel() public method

public BuildReadonlyKernel ( ) : IReadOnlyKernel
return IReadOnlyKernel

GetBindings() public method

public GetBindings ( Type service ) : IEnumerable
service System.Type
return IEnumerable

GetModules() public method

public GetModules ( ) : IEnumerable
return IEnumerable

HasModule() public method

public HasModule ( string name ) : bool
name string
return bool

KernelConfiguration() public method

Initializes a new instance of the KernelConfiguration class.
public KernelConfiguration ( ) : System
return System

KernelConfiguration() public method

Initializes a new instance of the KernelConfiguration class.
public KernelConfiguration ( IComponentContainer components, INinjectSettings settings ) : System
components IComponentContainer The component container to use.
settings INinjectSettings The configuration to use.
return System

KernelConfiguration() public method

Initializes a new instance of the KernelConfiguration class.
public KernelConfiguration ( INinjectSettings settings ) : System
settings INinjectSettings The configuration to use.
return System

Load() public method

public Load ( IEnumerable assemblies ) : void
assemblies IEnumerable
return void

Load() public method

public Load ( IEnumerable modules ) : void
modules IEnumerable
return void

Load() public method

public Load ( IEnumerable filePatterns ) : void
filePatterns IEnumerable
return void

RemoveBinding() public method

public RemoveBinding ( IBinding binding ) : void
binding IBinding
return void

Unbind() public method

public Unbind ( Type service ) : void
service System.Type
return void

Unload() public method

public Unload ( string name ) : void
name string
return void