/src/LinFu.AOP.Interfaces/ITypeActivationContext.cs

http://github.com/philiplaureano/LinFu · C# · 22 lines · 9 code · 2 blank · 11 comment · 0 complexity · 77ba381e053087c69e59bde8e58e31d7 MD5 · raw file

  1. using System.Reflection;
  2. namespace LinFu.AOP.Interfaces
  3. {
  4. /// <summary>
  5. /// Represents a special type of <see cref="IActivationContext" /> that can be used to instantiate a given type
  6. /// and can be used to describe the method that invoked the instantiation operation as well as specify the object
  7. /// instance that invoked the instantiation itself.
  8. /// </summary>
  9. public interface ITypeActivationContext : IActivationContext
  10. {
  11. /// <summary>
  12. /// Gets the value indicating the object instance that initiated the object instantiation operation.
  13. /// </summary>
  14. object Target { get; }
  15. /// <summary>
  16. /// Gets the value indiating the <see cref="MethodBase" /> instance that initiated the object instantiation operation.
  17. /// </summary>
  18. MethodBase TargetMethod { get; }
  19. }
  20. }