/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
- using Mono.Cecil;
- namespace LinFu.AOP.Cecil.Interfaces
- {
- /// <summary>
- /// Represents a type that determines which host methods should be modified for method call interception.
- /// </summary>
- public interface IMethodFilter
- {
- /// <summary>
- /// Determines whether or not a particular method should be modified.
- /// </summary>
- /// <param name="targetMethod">The target method to be modified.</param>
- /// <returns>Returns <c>true</c> if the method should be modified; otherwise, it will return <c>false</c>.</returns>
- bool ShouldWeave(MethodReference targetMethod);
- }
- }