/src/LinFu.IoC/Configuration/ContainerActivationContext.cs
http://github.com/philiplaureano/LinFu · C# · 34 lines · 17 code · 3 blank · 14 comment · 0 complexity · 847380b5987708985577b7ff180ccf91 MD5 · raw file
- using System;
- using LinFu.AOP.Interfaces;
- using LinFu.IoC.Configuration.Interfaces;
- using LinFu.IoC.Interfaces;
- using ActivationContext = LinFu.AOP.Interfaces.ActivationContext;
- namespace LinFu.IoC.Configuration
- {
- /// <summary>
- /// Represents a class that describes a request to instantiate a particular object type using a given
- /// <see cref="IServiceContainer" /> instance.
- /// </summary>
- public class ContainerActivationContext : ActivationContext, IContainerActivationContext
- {
- /// <summary>
- /// Initializes the class with the given parameters.
- /// </summary>
- /// <param name="concreteType">The type to be instantiated.</param>
- /// <param name="container">The container that will be used to instantiate the target type.</param>
- /// <param name="additionalArguments">The additional arguments that must be passed to the constructor.</param>
- public ContainerActivationContext(Type concreteType, IServiceContainer container, object[] additionalArguments)
- : base(concreteType, additionalArguments)
- {
- Container = container;
- }
- /// <summary>
- /// Gets the value indicating the <see cref="IServiceContainer" /> instance
- /// that will instantiate the <see cref="IActivationContext.TargetType" />.
- /// </summary>
- public IServiceContainer Container { get; }
- }
- }