/src/LinFu.IoC/Configuration/Interfaces/IMethodInjectionFilter.cs

http://github.com/philiplaureano/LinFu · C# · 22 lines · 11 code · 1 blank · 10 comment · 0 complexity · 693e5038ccc2f80cf2d29d6f1e7eb229 MD5 · raw file

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Reflection;
  4. namespace LinFu.IoC.Configuration.Interfaces
  5. {
  6. /// <summary>
  7. /// An interface responsible for determining which methods
  8. /// should be injected.
  9. /// </summary>
  10. public interface IMemberInjectionFilter<TMember>
  11. where TMember : MemberInfo
  12. {
  13. /// <summary>
  14. /// Returns the list of <see cref="MethodBase" /> objects
  15. /// that will be injected with arbitrary values.
  16. /// </summary>
  17. /// <param name="targetType">The target type that contains the target methods.</param>
  18. /// <returns>A set of methods that describe which methods that will injected.</returns>
  19. IEnumerable<TMember> GetInjectableMembers(Type targetType);
  20. }
  21. }