Method | Description | |
---|---|---|
ActivationBlock ( IResolutionRoot parent ) : System |
Initializes a new instance of the ActivationBlock class.
|
|
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.
|
|
Inject ( object instance ) : void |
Injects the specified existing instance, without managing its lifecycle.
|
|
Release ( object instance ) : bool |
Deactivates and releases the specified instance if it is currently managed by Ninject.
|
|
Resolve ( IRequest request ) : IEnumerable |
Resolves instances for the specified request. The instances are not actually resolved until a consumer iterates over the enumerator.
|
public ActivationBlock ( IResolutionRoot parent ) : System | ||
parent | IResolutionRoot | The parent resolution root. |
return | System |
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 Inject ( object instance ) : void | ||
instance | object | The instance to inject. |
return | void |
public Release ( object instance ) : bool | ||
instance | object | The instance to release. |
return | bool |
public Resolve ( IRequest request ) : IEnumerable | ||
request | IRequest | The request to resolve. |
return | IEnumerable |