PageRenderTime 112ms CodeModel.GetById 61ms app.highlight 1ms RepoModel.GetById 49ms app.codeStats 0ms

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