C# Class Ninject.Extensions.ContextPreservation.ContextPreservingResolutionRoot.ContextPreservingRequest

IRequest decorator that returns the configured parent context and target.
Inheritance: IRequest
显示文件 Open project: ninject/Ninject.Extensions.ContextPreservation

Public Methods

Method Description
ContextPreservingRequest ( IRequest originalRequest, IContext parentContext, ITarget originalTarget ) : System

Initializes a new instance of the ContextPreservingRequest class.

CreateChild ( Type service, IContext parentContext, ITarget target ) : IRequest

Creates a child.

GetScope ( ) : object

Gets the scope.

Matches ( IBinding binding ) : bool

Tests if the binding matched the given binding.

Method Details

ContextPreservingRequest() public method

Initializes a new instance of the ContextPreservingRequest class.
public ContextPreservingRequest ( IRequest originalRequest, IContext parentContext, ITarget originalTarget ) : System
originalRequest IRequest The original request.
parentContext IContext The parent context.
originalTarget ITarget The original target.
return System

CreateChild() public method

Creates a child.
public CreateChild ( Type service, IContext parentContext, ITarget target ) : IRequest
service System.Type The service.
parentContext IContext The parent context.
target ITarget The target.
return IRequest

GetScope() public method

Gets the scope.
public GetScope ( ) : object
return object

Matches() public method

Tests if the binding matched the given binding.
public Matches ( IBinding binding ) : bool
binding IBinding The binding.
return bool