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
파일 보기 프로젝트 열기: ninject/Ninject

공개 메소드들

메소드 설명
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