/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
- using System;
- using System.Reflection;
- namespace LinFu.AOP.Interfaces
- {
- /// <summary>
- /// Represents a class that describes the state of a field just as it is being intercepted.
- /// </summary>
- public interface IFieldInterceptionContext
- {
- /// <summary>
- /// Gets a value indicating the target instance that is attached to the target field.
- /// </summary>
- object Target { get; }
- /// <summary>
- /// Gets a value indicating the host method that is currently accessing the target field.
- /// </summary>
- MethodBase TargetMethod { get; }
- /// <summary>
- /// Gets a value indicating the field that is currently being accessed by the target method.
- /// </summary>
- FieldInfo TargetField { get; }
- /// <summary>
- /// Gets a value indicating the <see cref="System.Type" /> that holds the target field.
- /// </summary>
- Type HostType { get; }
- }
- }