C# Class Ninject.Selection.Heuristics.StandardConstructorScorer

Scores constructors by either looking for the existence of an injection marker attribute, or by counting the number of parameters.
Inheritance: Ninject.Components.NinjectComponent, IConstructorScorer
Afficher le fichier Open project: ninject/Ninject

Méthodes publiques

Méthode Description
Score ( IContext context, ConstructorInjectionDirective directive ) : int

Gets the score for the specified constructor.

Méthodes protégées

Méthode Description
BindingExists ( IContext context, ITarget target ) : bool

Checkes whether a binding exists for a given target.

BindingExists ( IReadOnlyKernel kernel, IContext context, ITarget target ) : bool

Checkes whether a binding exists for a given target on the specified kernel.

ParameterExists ( IContext context, ITarget target ) : bool

Checks whether any parameters exist for the given target..

Private Methods

Méthode Description
GetTargetType ( ITarget target ) : Type

Method Details

BindingExists() protected méthode

Checkes whether a binding exists for a given target.
protected BindingExists ( IContext context, ITarget target ) : bool
context IContext The context.
target ITarget The target.
Résultat bool

BindingExists() protected méthode

Checkes whether a binding exists for a given target on the specified kernel.
protected BindingExists ( IReadOnlyKernel kernel, IContext context, ITarget target ) : bool
kernel IReadOnlyKernel The kernel.
context IContext The context.
target ITarget The target.
Résultat bool

ParameterExists() protected méthode

Checks whether any parameters exist for the given target..
protected ParameterExists ( IContext context, ITarget target ) : bool
context IContext The context.
target ITarget The target.
Résultat bool

Score() public méthode

Gets the score for the specified constructor.
public Score ( IContext context, ConstructorInjectionDirective directive ) : int
context IContext The injection context.
directive ConstructorInjectionDirective The constructor.
Résultat int