C# Class Ninject.Activation.Request

Describes the request for a service resolution.
Inheritance: IRequest
Show file Open project: ninject/Ninject Class Usage Examples

Public Methods

Method 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 method

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.
return IRequest

GetScope() public method

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

Matches() public method

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

Request() public method

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.
return System

Request() public method

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.
return System

ToString() public method

Formats this object into a meaningful string representation.
public ToString ( ) : string
return string