Property | Type | Description |
---|
Method | Description | |
---|---|---|
AddBinding ( IBinding binding ) : void |
Registers the specified binding.
|
|
BeginBlock ( ) : IActivationBlock |
Begins a new activation block, which can be used to deterministically dispose resolved instances.
|
|
BuildReadonlyKernel ( ) : IReadOnlyKernel | ||
CanResolve ( IRequest request ) : bool |
Determines whether the specified request can be resolved.
|
|
CanResolve ( IRequest request, bool ignoreImplicitBindings ) : bool |
Determines whether the specified request can be resolved.
|
|
CreateRequest ( |
Creates a request for the specified service.
|
|
Dispose ( bool disposing ) : void |
Releases resources held by the object.
|
|
GetBindings ( |
Gets the bindings registered for the specified service.
|
|
GetModules ( ) : IEnumerable |
Gets the modules that have been loaded into the kernel.
|
|
GetService ( |
||
HasModule ( string name ) : bool |
Determines whether a module with the specified name has been loaded in the kernel.
|
|
Inject ( object instance ) : void |
Injects the specified existing instance, without managing its lifecycle.
|
|
Load ( IEnumerable |
Loads modules defined in the specified assemblies.
|
|
Load ( IEnumerable |
Loads the module(s) into the kernel.
|
|
Load ( IEnumerable |
Loads modules from the files that match the specified pattern(s).
|
|
Release ( object instance ) : bool |
Deactivates and releases the specified instance if it is currently managed by Ninject.
|
|
RemoveBinding ( IBinding binding ) : void |
Unregisters the specified binding.
|
|
Resolve ( IRequest request ) : IEnumerable |
Resolves instances for the specified request. The instances are not actually resolved until a consumer iterates over the enumerator.
|
|
Unbind ( |
Unregisters all bindings for the specified service.
|
|
Unload ( string name ) : void |
Unloads the plugin with the specified name.
|
Method | Description | |
---|---|---|
KernelBase ( ) : System |
Initializes a new instance of the KernelBase class.
|
|
KernelBase ( IComponentContainer components, INinjectSettings settings ) : System |
Initializes a new instance of the KernelBase class.
|
|
KernelBase ( INinjectSettings settings ) : System |
Initializes a new instance of the KernelBase class.
|
public AddBinding ( IBinding binding ) : void | ||
binding | IBinding | The binding to add. |
return | void |
public BuildReadonlyKernel ( ) : IReadOnlyKernel | ||
return | IReadOnlyKernel |
public CanResolve ( IRequest request ) : bool | ||
request | IRequest | The request. |
return | bool |
public CanResolve ( IRequest request, bool ignoreImplicitBindings ) : bool | ||
request | IRequest | The request. |
ignoreImplicitBindings | bool | if set to |
return | bool |
public CreateRequest ( |
||
service | The service that is being requested. | |
constraint | bool>.Func | The constraint to apply to the bindings to determine if they match the request. |
parameters | IEnumerable |
The parameters to pass to the resolution. |
isOptional | bool | |
isUnique | bool | |
return | IRequest |
public Dispose ( bool disposing ) : void | ||
disposing | bool | |
return | void |
public GetBindings ( |
||
service | The service in question. | |
return | IEnumerable |
public GetService ( |
||
serviceType | ||
return | object |
public HasModule ( string name ) : bool | ||
name | string | The name of the module. |
return | bool |
public Inject ( object instance ) : void | ||
instance | object | The instance to inject. |
return | void |
protected KernelBase ( IComponentContainer components, INinjectSettings settings ) : System | ||
components | IComponentContainer | The component container to use. |
settings | INinjectSettings | The configuration to use. |
return | System |
protected KernelBase ( INinjectSettings settings ) : System | ||
settings | INinjectSettings | The configuration to use. |
return | System |
public Load ( IEnumerable |
||
assemblies | IEnumerable |
The assemblies to search. |
return | void |
public Load ( IEnumerable |
||
m | IEnumerable |
The modules to load. |
return | void |
public Load ( IEnumerable |
||
filePatterns | IEnumerable |
The file patterns (i.e. "*.dll", "modules/*.rb") to match. |
return | void |
public Release ( object instance ) : bool | ||
instance | object | The instance to release. |
return | bool |
public RemoveBinding ( IBinding binding ) : void | ||
binding | IBinding | The binding to remove. |
return | void |
public Resolve ( IRequest request ) : IEnumerable | ||
request | IRequest | The request to resolve. |
return | IEnumerable |
public Unbind ( |
||
service | The service to unbind. | |
return | void |
public Unload ( string name ) : void | ||
name | string | The plugin's name. |
return | void |