C# 클래스 OpenRasta.DI.Unity.Extensions.Policies.ConstructorSelectorPolicy

Selects the constructor with the most parameters we can actually provide.
Normally Unity prefers the constructor with the most parameters, even if they can't be provided.
상속: IConstructorSelectorPolicy
파일 보기 프로젝트 열기: openrasta/openrasta-unity

공개 메소드들

메소드 설명
SelectConstructor ( IBuilderContext context, IPolicyList resolverPolicyDestination ) : SelectedConstructor

비공개 메소드들

메소드 설명
Rate ( MethodBase constructor, TypeTracker typeTracker ) : int

Scores the given constructor based on the number of dependencies we can fill.

SelectConstructor ( Type target, TypeTracker typeTracker ) : ConstructorInfo

메소드 상세

SelectConstructor() 공개 메소드

public SelectConstructor ( IBuilderContext context, IPolicyList resolverPolicyDestination ) : SelectedConstructor
context IBuilderContext
resolverPolicyDestination IPolicyList
리턴 SelectedConstructor