PageRenderTime 62ms CodeModel.GetById 34ms app.highlight 1ms RepoModel.GetById 26ms app.codeStats 0ms

/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
 1namespace LinFu.AOP.Interfaces
 2{
 3    /// <summary>
 4    ///     Represents a class that injects code around a method implementation.
 5    /// </summary>
 6    public interface IAroundInvokeProvider
 7    {
 8        /// <summary>
 9        ///     Gets the <see cref="IAroundInvoke" /> instance that will be executed
10        ///     before and after the target method (specified in the <paramref name="context" /> parameter)
11        ///     is called.
12        /// </summary>
13        /// <param name="context">
14        ///     The <see cref="IInvocationInfo" /> that describes the context of the method call at the call
15        ///     site.
16        /// </param>
17        /// ///
18        /// <returns>
19        ///     An <see cref="IAroundInvoke" /> instance if the surrounding behavior can be found; otherwise, it should return
20        ///     <c>null</c>.
21        /// </returns>
22        IAroundInvoke GetSurroundingImplementation(IInvocationInfo context);
23    }
24}