/src/LinFu.IoC/Configuration/interfaces/IConstructorArgumentResolver.cs
http://github.com/philiplaureano/LinFu · C# · 24 lines · 10 code · 1 blank · 13 comment · 0 complexity · 44ba96ea2e3650c924e0863629c94d77 MD5 · raw file
- using System.Reflection;
- using LinFu.IoC.Interfaces;
- namespace LinFu.IoC.Configuration.Interfaces
- {
- /// <summary>
- /// Represents a type that determines the method arguments that should be used for a given constructor.
- /// </summary>
- public interface IConstructorArgumentResolver
- {
- /// <summary>
- /// Determines the parameter values that should be used for a given constructor.
- /// </summary>
- /// <param name="constructor">The target constructor.</param>
- /// <param name="container">The host container instance.</param>
- /// <param name="additionalArguments">
- /// The list of additional arguments that should be combined with the arguments from the
- /// container.
- /// </param>
- /// <returns>A list of arguments that will be used for the given constructor.</returns>
- object[] GetConstructorArguments(ConstructorInfo constructor, IServiceContainer container,
- object[] additionalArguments);
- }
- }