PageRenderTime 132ms CodeModel.GetById 60ms app.highlight 1ms RepoModel.GetById 70ms app.codeStats 0ms

/src/LinFu.IoC/Configuration/FluentInterfaces/BaseContext.cs

http://github.com/philiplaureano/LinFu
C# | 30 lines | 11 code | 3 blank | 16 comment | 0 complexity | e0593dadb95eb67f630347a06db80143 MD5 | raw file
 1using System;
 2using LinFu.IoC.Interfaces;
 3
 4namespace LinFu.IoC.Configuration
 5{
 6    /// <summary>
 7    ///     Represents a class that provides the most basic information
 8    ///     for executing a fluent command against a
 9    ///     <see cref="IServiceContainer" /> instance.
10    /// </summary>
11    /// <typeparam name="TService"></typeparam>
12    internal abstract class BaseContext<TService>
13    {
14        /// <summary>
15        ///     The service type to be created.
16        /// </summary>
17        public Type ServiceType => typeof(TService);
18
19        /// <summary>
20        ///     The name of the service to be created.
21        /// </summary>
22        public string ServiceName { get; set; }
23
24        /// <summary>
25        ///     The actual <see cref="IServiceContainer" />
26        ///     that ultimately will hold the service instance.
27        /// </summary>
28        public IServiceContainer Container { get; set; }
29    }
30}