C# Class LinFu.IoC.Configuration.ArgumentResolver

Represents the default implementation of the IArgumentResolver class.
Inheritance: IArgumentResolver
ファイルを表示 Open project: philiplaureano/LinFu

Public Methods

Method Description
ResolveFrom ( IEnumerable parameterTypes, IServiceContainer container ) : object[]

Generates method arguments from the given parameterTypes and container.

Private Methods

Method Description
AddArrayArgument ( Type parameterType, IServiceContainer container, ICollection argumentList ) : void

Constructs an array of services using the services currently available in the container.

AddEnumerableArgument ( Type parameterType, IServiceContainer container, ICollection argumentList ) : void

Determines whether or not a parameter type is an existing list of available services and automatically constructs the service list and adds it to the argumentList.

Method Details

ResolveFrom() public method

Generates method arguments from the given parameterTypes and container.
public ResolveFrom ( IEnumerable parameterTypes, IServiceContainer container ) : object[]
parameterTypes IEnumerable The parameter types for the target method.
container IServiceContainer The container that will provide the method arguments.
return object[]