/src/LinFu.IoC/Configuration/FluentInterfaces/InjectionContext.cs
http://github.com/philiplaureano/LinFu · C# · 21 lines · 9 code · 1 blank · 11 comment · 0 complexity · 5d5eda553b1940225cd2a48fda509e30 MD5 · raw file
- using System;
- using LinFu.IoC.Interfaces;
- namespace LinFu.IoC.Configuration
- {
- /// <summary>
- /// Represents the <c>internal</c> context class that will be used to
- /// incrementally build enough information to inject a specific
- /// <see cref="IFactory{T}" /> instance into a container.
- /// </summary>
- /// <typeparam name="TService">The service type to be created.</typeparam>
- internal class InjectionContext<TService> : BaseContext<TService>
- {
- /// <summary>
- /// The factory method that will be used to
- /// instantiate the actual <typeparamref name="TService" />
- /// instance.
- /// </summary>
- public Func<IFactoryRequest, TService> FactoryMethod { get; set; }
- }
- }