C# Class Ninject.Planning.Bindings.Binding

Contains information about a service registration.
Inheritance: IBinding
Afficher le fichier Open project: ninject/Ninject Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

Binding() public méthode

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

GetProvider() public méthode

Gets the provider for the binding.
public GetProvider ( IContext context ) : IProvider
context IContext The context.
Résultat IProvider

GetScope() public méthode

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

Matches() public méthode

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