/src/LinFu.AOP.Interfaces/IAroundInvokeProvider.cs
http://github.com/philiplaureano/LinFu · C# · 24 lines · 7 code · 0 blank · 17 comment · 0 complexity · 1a98464155842d8c0bbf19ab6bd3e101 MD5 · raw file
- namespace LinFu.AOP.Interfaces
- {
- /// <summary>
- /// Represents a class that injects code around a method implementation.
- /// </summary>
- public interface IAroundInvokeProvider
- {
- /// <summary>
- /// Gets the <see cref="IAroundInvoke" /> instance that will be executed
- /// before and after the target method (specified in the <paramref name="context" /> parameter)
- /// is called.
- /// </summary>
- /// <param name="context">
- /// The <see cref="IInvocationInfo" /> that describes the context of the method call at the call
- /// site.
- /// </param>
- /// ///
- /// <returns>
- /// An <see cref="IAroundInvoke" /> instance if the surrounding behavior can be found; otherwise, it should return
- /// <c>null</c>.
- /// </returns>
- IAroundInvoke GetSurroundingImplementation(IInvocationInfo context);
- }
- }