PageRenderTime 6ms CodeModel.GetById 2ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/src/LinFu.AOP.Interfaces/IFieldInterceptionContext.cs

http://github.com/philiplaureano/LinFu
C# | 31 lines | 12 code | 4 blank | 15 comment | 0 complexity | 820374006d8c1cd5e22d2aeda1812853 MD5 | raw file
 1using System;
 2using System.Reflection;
 3
 4namespace LinFu.AOP.Interfaces
 5{
 6    /// <summary>
 7    ///     Represents a class that describes the state of a field just as it is being intercepted.
 8    /// </summary>
 9    public interface IFieldInterceptionContext
10    {
11        /// <summary>
12        ///     Gets a value indicating the target instance that is attached to the target field.
13        /// </summary>
14        object Target { get; }
15
16        /// <summary>
17        ///     Gets a value indicating the host method that is currently accessing the target field.
18        /// </summary>
19        MethodBase TargetMethod { get; }
20
21        /// <summary>
22        ///     Gets a value indicating the field that is currently being accessed by the target method.
23        /// </summary>
24        FieldInfo TargetField { get; }
25
26        /// <summary>
27        ///     Gets a value indicating the <see cref="System.Type" /> that holds the target field.
28        /// </summary>
29        Type HostType { get; }
30    }
31}