C# Class 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.
Inheritance: IConstructorSelectorPolicy
Afficher le fichier Open project: openrasta/openrasta-unity

Méthodes publiques

Méthode Description
SelectConstructor ( IBuilderContext context, IPolicyList resolverPolicyDestination ) : SelectedConstructor

Private Methods

Méthode Description
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

Method Details

SelectConstructor() public méthode

public SelectConstructor ( IBuilderContext context, IPolicyList resolverPolicyDestination ) : SelectedConstructor
context IBuilderContext
resolverPolicyDestination IPolicyList
Résultat SelectedConstructor