C# Class Ninject.Activation.Request

Describes the request for a service resolution.
Inheritance: IRequest
Afficher le fichier Open project: ninject/Ninject Class Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

CreateChild() public méthode

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

GetScope() public méthode

Gets the scope if one was specified in the request.
public GetScope ( ) : object
Résultat object

Matches() public méthode

Determines whether the specified binding satisfies the constraints defined on this request.
public Matches ( IBinding binding ) : bool
binding IBinding The binding.
Résultat bool

Request() public méthode

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

Request() public méthode

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

ToString() public méthode

Formats this object into a meaningful string representation.
public ToString ( ) : string
Résultat string