/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

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