/src/LinFu.AOP.Interfaces/ActivationContext.cs
http://github.com/philiplaureano/LinFu · C# · 32 lines · 14 code · 4 blank · 14 comment · 0 complexity · 372614da0d469f0ebc610b96fe99ba39 MD5 · raw file
- using System;
- namespace LinFu.AOP.Interfaces
- {
- /// <summary>
- /// Represents a class that describes a request to instantiate a particular object type.
- /// </summary>
- public class ActivationContext : IActivationContext
- {
- /// <summary>
- /// Initializes the context with the given parameters.
- /// </summary>
- /// <param name="concreteType">The type to be instantiated.</param>
- /// <param name="additionalArguments">The additional arguments that must be passed to the constructor.</param>
- public ActivationContext(Type concreteType, object[] additionalArguments)
- {
- TargetType = concreteType;
- AdditionalArguments = additionalArguments;
- }
- /// <summary>
- /// Gets the value indicating the type to be instantiated.
- /// </summary>
- public Type TargetType { get; }
- /// <summary>
- /// Gets the value indicating the arguments that will be passed to the constructor during instantiation.
- /// </summary>
- public object[] AdditionalArguments { get; }
- }
- }