PageRenderTime 162ms CodeModel.GetById 80ms app.highlight 1ms RepoModel.GetById 79ms app.codeStats 1ms

/src/LinFu.AOP.Interfaces/IInterceptor.cs

http://github.com/philiplaureano/LinFu
C# | 23 lines | 7 code | 0 blank | 16 comment | 0 complexity | 2d6c45c8cbb0227eee3c24a6c6630167 MD5 | raw file
 1namespace LinFu.AOP.Interfaces
 2{
 3    /// <summary>
 4    ///     Represents a class that can dynamically intercept method calls.
 5    /// </summary>
 6    public interface IInterceptor
 7    {
 8        /// <summary>
 9        ///     Intercepts a method call using the given
10        ///     <see cref="IInvocationInfo" /> instance.
11        /// </summary>
12        /// <param name="info">
13        ///     The <see cref="IInvocationInfo" /> instance that will
14        ///     contain all the necessary information associated with a
15        ///     particular method call.
16        /// </param>
17        /// <returns>
18        ///     The return value of the target method. If the return type of the target
19        ///     method is <see cref="void" />, then the return value will be ignored.
20        /// </returns>
21        object Intercept(IInvocationInfo info);
22    }
23}