/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

  1. using System;
  2. using System.Reflection;
  3. namespace LinFu.AOP.Interfaces
  4. {
  5. /// <summary>
  6. /// Represents a class that describes the state of a field just as it is being intercepted.
  7. /// </summary>
  8. public interface IFieldInterceptionContext
  9. {
  10. /// <summary>
  11. /// Gets a value indicating the target instance that is attached to the target field.
  12. /// </summary>
  13. object Target { get; }
  14. /// <summary>
  15. /// Gets a value indicating the host method that is currently accessing the target field.
  16. /// </summary>
  17. MethodBase TargetMethod { get; }
  18. /// <summary>
  19. /// Gets a value indicating the field that is currently being accessed by the target method.
  20. /// </summary>
  21. FieldInfo TargetField { get; }
  22. /// <summary>
  23. /// Gets a value indicating the <see cref="System.Type" /> that holds the target field.
  24. /// </summary>
  25. Type HostType { get; }
  26. }
  27. }