C# Class LinFu.IoC.Configuration.Resolvers.ConstructorArgumentResolver

Represents a class that determines the method arguments that should be used for a given constructor.
Inheritance: IConstructorArgumentResolver, IInitialize
显示文件 Open project: philiplaureano/LinFu

Public Methods

Method Description
GetConstructorArguments ( ConstructorInfo constructor, IServiceContainer container, object additionalArguments ) : object[]

Determines the parameter values that should be used for a given constructor.

Initialize ( IServiceContainer container ) : void

Initializes the class with the default services.

Private Methods

Method Description
GetMissingParameterTypes ( ConstructorInfo constructor, IEnumerable additionalArguments ) : IEnumerable

Determines which parameter types need to be supplied to invoke a particular constructor instance.

Method Details

GetConstructorArguments() public method

Determines the parameter values that should be used for a given constructor.
public GetConstructorArguments ( ConstructorInfo constructor, IServiceContainer container, object additionalArguments ) : object[]
constructor System.Reflection.ConstructorInfo The target constructor.
container IServiceContainer The host container instance.
additionalArguments object The list of additional arguments that should be combined with the arguments from the container.
return object[]

Initialize() public method

Initializes the class with the default services.
public Initialize ( IServiceContainer container ) : void
container IServiceContainer The target service container.
return void