PageRenderTime 47ms CodeModel.GetById 44ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 1using System;
 2using LinFu.IoC.Interfaces;
 3
 4namespace LinFu.IoC.Configuration
 5{
 6    /// <summary>
 7    ///     Represents the <c>internal</c> context class that will be used to
 8    ///     incrementally build enough information to inject a specific
 9    ///     <see cref="IFactory{T}" /> instance into a container.
10    /// </summary>
11    /// <typeparam name="TService">The service type to be created.</typeparam>
12    internal class InjectionContext<TService> : BaseContext<TService>
13    {
14        /// <summary>
15        ///     The factory method that will be used to
16        ///     instantiate the actual <typeparamref name="TService" />
17        ///     instance.
18        /// </summary>
19        public Func<IFactoryRequest, TService> FactoryMethod { get; set; }
20    }
21}