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

IRequest decorator that returns the configured parent context and target.
Inheritance: IRequest
Afficher le fichier Open project: ninject/Ninject.Extensions.ContextPreservation

Méthodes publiques

Méthode 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 méthode

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.
Résultat System

CreateChild() public méthode

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.
Résultat IRequest

GetScope() public méthode

Gets the scope.
public GetScope ( ) : object
Résultat object

Matches() public méthode

Tests if the binding matched the given binding.
public Matches ( IBinding binding ) : bool
binding IBinding The binding.
Résultat bool