C# Class Ninject.Planning.Bindings.Binding

Contains information about a service registration.
Inheritance: IBinding
Datei anzeigen Open project: ninject/Ninject Class Usage Examples

Public Methods

Method Description
Binding ( Type service ) : System

Initializes a new instance of the Binding class.

Binding ( Type service, IBindingConfiguration configuration ) : System

Initializes a new instance of the Binding class.

GetProvider ( IContext context ) : IProvider

Gets the provider for the binding.

GetScope ( IContext context ) : object

Gets the scope for the binding, if any.

Matches ( IRequest request ) : bool

Determines whether the specified request satisfies the condition defined on the binding, if one was defined.

Method Details

Binding() public method

Initializes a new instance of the Binding class.
public Binding ( Type service ) : System
service System.Type The service that is controlled by the binding.
return System

Binding() public method

Initializes a new instance of the Binding class.
public Binding ( Type service, IBindingConfiguration configuration ) : System
service System.Type The service that is controlled by the binding.
configuration IBindingConfiguration The binding configuration.
return System

GetProvider() public method

Gets the provider for the binding.
public GetProvider ( IContext context ) : IProvider
context IContext The context.
return IProvider

GetScope() public method

Gets the scope for the binding, if any.
public GetScope ( IContext context ) : object
context IContext The context.
return object

Matches() public method

Determines whether the specified request satisfies the condition defined on the binding, if one was defined.
public Matches ( IRequest request ) : bool
request IRequest The request.
return bool