C# Класс Ninject.Activation.Request

Describes the request for a service resolution.
Наследование: IRequest
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
CreateChild ( Type service, IContext parentContext, ITarget target ) : IRequest

Creates a child request.

GetScope ( ) : object

Gets the scope if one was specified in the request.

Matches ( IBinding binding ) : bool

Determines whether the specified binding satisfies the constraints defined on this request.

Request ( IContext parentContext, Type service, ITarget target, Func scopeCallback ) : System

Initializes a new instance of the Request class.

Request ( Type service, bool>.Func constraint, IEnumerable parameters, Func scopeCallback, bool isOptional, bool isUnique ) : System

Initializes a new instance of the Request class.

ToString ( ) : string

Formats this object into a meaningful string representation.

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

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

Creates a child request.
public CreateChild ( Type service, IContext parentContext, ITarget target ) : IRequest
service System.Type The service that is being requested.
parentContext IContext The context in which the request was made.
target ITarget The target that will receive the injection.
Результат IRequest

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

Gets the scope if one was specified in the request.
public GetScope ( ) : object
Результат object

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

Determines whether the specified binding satisfies the constraints defined on this request.
public Matches ( IBinding binding ) : bool
binding IBinding The binding.
Результат bool

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

Initializes a new instance of the Request class.
public Request ( IContext parentContext, Type service, ITarget target, Func scopeCallback ) : System
parentContext IContext The parent context.
service System.Type The service that was requested.
target ITarget The target that will receive the injection.
scopeCallback Func The scope callback, if an external scope was specified.
Результат System

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

Initializes a new instance of the Request class.
public Request ( Type service, bool>.Func constraint, IEnumerable parameters, Func scopeCallback, bool isOptional, bool isUnique ) : System
service System.Type The service that was requested.
constraint bool>.Func The constraint that will be applied to filter the bindings used for the request.
parameters IEnumerable The parameters that affect the resolution.
scopeCallback Func The scope callback, if an external scope was specified.
isOptional bool True if the request is optional; otherwise, false.
isUnique bool True if the request should return a unique result; otherwise, false.
Результат System

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

Formats this object into a meaningful string representation.
public ToString ( ) : string
Результат string