C# Class Hiro.Resolvers.ConstructorResolver

Represents a class that selects the constructor with the most resolvable parameters.
Inheritance: IConstructorResolver
显示文件 Open project: philiplaureano/Hiro Class Usage Examples

Public Methods

Method Description
ResolveFrom ( System targetType, IDependencyContainer container ) : IImplementation

Determines which constructor implementation should be used from a given IDependencyContainer instance.

Protected Methods

Method Description
CreateConstructorCall ( ConstructorInfo constructor ) : IImplementation

Creates the IImplementation instance that will generate the given constructor call.

Method Details

CreateConstructorCall() protected method

Creates the IImplementation instance that will generate the given constructor call.
protected CreateConstructorCall ( ConstructorInfo constructor ) : IImplementation
constructor System.Reflection.ConstructorInfo The target constructor.
return IImplementation

ResolveFrom() public method

Determines which constructor implementation should be used from a given IDependencyContainer instance.
public ResolveFrom ( System targetType, IDependencyContainer container ) : IImplementation
targetType System The target type that contains list of constructors to be resolved.
container IDependencyContainer The dependency container that holds the current set of dependencies.
return IImplementation