/src/LinFu.Proxy.Interfaces/IMethodPicker.cs
http://github.com/philiplaureano/LinFu · C# · 22 lines · 10 code · 1 blank · 11 comment · 0 complexity · 71c2412d79a24884fe3e47b01edeedc6 MD5 · raw file
- using System;
- using System.Collections.Generic;
- using System.Reflection;
- namespace LinFu.Proxy.Interfaces
- {
- /// <summary>
- /// Represents a class that determines which methods should be proxied
- /// by a given proxy factory.
- /// </summary>
- public interface IMethodPicker
- {
- /// <summary>
- /// Determines which methods should be proxied
- /// by a given proxy factory.
- /// </summary>
- /// <param name="baseType">The base class of the proxy type currently being generated.</param>
- /// <param name="baseInterfaces">The list of interfaces that the proxy must implement.</param>
- /// <returns>A list of <see cref="MethodInfo" /> objects that can be proxied.</returns>
- IEnumerable<MethodInfo> ChooseProxyMethodsFrom(Type baseType, IEnumerable<Type> baseInterfaces);
- }
- }