C# Класс Ninject.Selection.Heuristics.StandardConstructorScorer

Scores constructors by either looking for the existence of an injection marker attribute, or by counting the number of parameters.
Наследование: Ninject.Components.NinjectComponent, IConstructorScorer
Показать файл Открыть проект

Открытые методы

Метод Описание
Score ( IContext context, ConstructorInjectionDirective directive ) : int

Gets the score for the specified constructor.

Защищенные методы

Метод Описание
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..

Приватные методы

Метод Описание
GetTargetType ( ITarget target ) : Type

Описание методов

BindingExists() защищенный Метод

Checkes whether a binding exists for a given target.
protected BindingExists ( IContext context, ITarget target ) : bool
context IContext The context.
target ITarget The target.
Результат bool

BindingExists() защищенный Метод

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.
Результат bool

ParameterExists() защищенный Метод

Checks whether any parameters exist for the given target..
protected ParameterExists ( IContext context, ITarget target ) : bool
context IContext The context.
target ITarget The target.
Результат bool

Score() публичный Метод

Gets the score for the specified constructor.
public Score ( IContext context, ConstructorInjectionDirective directive ) : int
context IContext The injection context.
directive ConstructorInjectionDirective The constructor.
Результат int