/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
- using System.Reflection;
- namespace LinFu.AOP.Interfaces
- {
- /// <summary>
- /// Represents a special type of <see cref="IActivationContext" /> that can be used to instantiate a given type
- /// and can be used to describe the method that invoked the instantiation operation as well as specify the object
- /// instance that invoked the instantiation itself.
- /// </summary>
- public interface ITypeActivationContext : IActivationContext
- {
- /// <summary>
- /// Gets the value indicating the object instance that initiated the object instantiation operation.
- /// </summary>
- object Target { get; }
- /// <summary>
- /// Gets the value indiating the <see cref="MethodBase" /> instance that initiated the object instantiation operation.
- /// </summary>
- MethodBase TargetMethod { get; }
- }
- }