C# Класс Ninject.Extensions.ContextPreservation.ContextPreservingResolutionRoot.ContextPreservingRequest

IRequest decorator that returns the configured parent context and target.
Наследование: IRequest
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

ContextPreservingRequest() публичный Метод

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.
Результат System

CreateChild() публичный Метод

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.
Результат IRequest

GetScope() публичный Метод

Gets the scope.
public GetScope ( ) : object
Результат object

Matches() публичный Метод

Tests if the binding matched the given binding.
public Matches ( IBinding binding ) : bool
binding IBinding The binding.
Результат bool