PageRenderTime 123ms CodeModel.GetById 120ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/src/LinFu.AOP/Interfaces/IMethodFilter.cs

http://github.com/philiplaureano/LinFu
C# | 17 lines | 8 code | 1 blank | 8 comment | 0 complexity | 1e8421f2d0859c7338f898986529e40b MD5 | raw file
 1using Mono.Cecil;
 2
 3namespace LinFu.AOP.Cecil.Interfaces
 4{
 5    /// <summary>
 6    ///     Represents a type that determines which host methods should be modified for method call interception.
 7    /// </summary>
 8    public interface IMethodFilter
 9    {
10        /// <summary>
11        ///     Determines whether or not a particular method should be modified.
12        /// </summary>
13        /// <param name="targetMethod">The target method to be modified.</param>
14        /// <returns>Returns <c>true</c> if the method should be modified; otherwise, it will return <c>false</c>.</returns>
15        bool ShouldWeave(MethodReference targetMethod);
16    }
17}