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

Constructor selector that selects the constructor matching the one passed to the constructor.
Наследование: Ninject.Components.NinjectComponent, IConstructorScorer
Показать файл Открыть проект

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

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

Gets the score for the specified constructor.

SpecificConstructorSelector ( ConstructorInfo constructorInfo ) : System.Reflection

Initializes a new instance of the SpecificConstructorSelector class.

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

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

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

Initializes a new instance of the SpecificConstructorSelector class.
public SpecificConstructorSelector ( ConstructorInfo constructorInfo ) : System.Reflection
constructorInfo System.Reflection.ConstructorInfo The constructor info of the constructor that shall be selected.
Результат System.Reflection