PageRenderTime 122ms CodeModel.GetById 80ms app.highlight 2ms RepoModel.GetById 39ms app.codeStats 0ms

/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
 1using System.Reflection;
 2using LinFu.IoC.Interfaces;
 3
 4namespace LinFu.IoC.Configuration.Interfaces
 5{
 6    /// <summary>
 7    ///     Represents a type that determines the method arguments that should be used for a given constructor.
 8    /// </summary>
 9    public interface IConstructorArgumentResolver
10    {
11        /// <summary>
12        ///     Determines the parameter values that should be used for a given constructor.
13        /// </summary>
14        /// <param name="constructor">The target constructor.</param>
15        /// <param name="container">The host container instance.</param>
16        /// <param name="additionalArguments">
17        ///     The list of additional arguments that should be combined with the arguments from the
18        ///     container.
19        /// </param>
20        /// <returns>A list of arguments that will be used for the given constructor.</returns>
21        object[] GetConstructorArguments(ConstructorInfo constructor, IServiceContainer container,
22            object[] additionalArguments);
23    }
24}