/src/LinFu.IoC/Configuration/Interfaces/IMethodFinder.cs
http://github.com/philiplaureano/LinFu · C# · 27 lines · 11 code · 1 blank · 15 comment · 0 complexity · 9a62889b795132bc627759f40071d389 MD5 · raw file
- using System.Collections.Generic;
- using System.Reflection;
- using LinFu.IoC.Interfaces;
- namespace LinFu.IoC.Configuration.Interfaces
- {
- /// <summary>
- /// Represents a class that determines which method best matches the
- /// services currently in the target container.
- /// </summary>
- /// <typeparam name="T">The method type to search.</typeparam>
- public interface IMethodFinder<T>
- where T : MethodBase
- {
- /// <summary>
- /// Determines which method best matches the
- /// services currently in the target container.
- /// </summary>
- /// <param name="items">The list of methods to search.</param>
- /// <param name="finderContext">The <see cref="IMethodFinderContext" /> that describes the target method.</param>
- /// <returns>
- /// Returns the method with the most resolvable parameters from the target <see cref="IServiceContainer" />
- /// instance.
- /// </returns>
- T GetBestMatch(IEnumerable<T> items, IMethodFinderContext finderContext);
- }
- }