C# Class Ninject.Extensions.ChildKernel.ChildKernel

This is a kernel with a parent kernel. Any binding that can not be resolved by this kernel is forwarded to the parent.
Inheritance: Ninject.StandardKernel, IChildKernel
Mostra file Open project: ninject/Ninject.Extensions.ChildKernel Class Usage Examples

Public Methods

Method Description
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.

ChildKernel ( IResolutionRoot parent ) : System

Initializes a new instance of the ChildKernel class.

ChildKernel ( IResolutionRoot parent, INinjectSettings settings ) : System

Initializes a new instance of the ChildKernel class.

Resolve ( IRequest request ) : IEnumerable

Resolves instances for the specified request. The instances are not actually resolved until a consumer iterates over the enumerator.

Method Details

CanResolve() public method

Determines whether the specified request can be resolved.
public CanResolve ( IRequest request ) : bool
request IRequest The request.
return bool

CanResolve() public method

Determines whether the specified request can be resolved.
public CanResolve ( IRequest request, bool ignoreImplicitBindings ) : bool
request IRequest The request.
ignoreImplicitBindings bool if set to true implicit bindings are ignored.
return bool

ChildKernel() public method

Initializes a new instance of the ChildKernel class.
public ChildKernel ( IResolutionRoot parent ) : System
parent IResolutionRoot The parent.
return System

ChildKernel() public method

Initializes a new instance of the ChildKernel class.
public ChildKernel ( IResolutionRoot parent, INinjectSettings settings ) : System
parent IResolutionRoot The parent.
settings INinjectSettings The settings.
return System

Resolve() public method

Resolves instances for the specified request. The instances are not actually resolved until a consumer iterates over the enumerator.
public Resolve ( IRequest request ) : IEnumerable
request IRequest The request to resolve.
return IEnumerable