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
Mostra file Open project: openrasta/openrasta-unity

Public Methods

Method Description
SelectConstructor ( IBuilderContext context, IPolicyList resolverPolicyDestination ) : SelectedConstructor

Private Methods

Method 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 method

public SelectConstructor ( IBuilderContext context, IPolicyList resolverPolicyDestination ) : SelectedConstructor
context IBuilderContext
resolverPolicyDestination IPolicyList
return SelectedConstructor