/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
- using System;
- using LinFu.IoC.Interfaces;
- namespace LinFu.IoC.Configuration
- {
- /// <summary>
- /// Represents a class that provides the most basic information
- /// for executing a fluent command against a
- /// <see cref="IServiceContainer" /> instance.
- /// </summary>
- /// <typeparam name="TService"></typeparam>
- internal abstract class BaseContext<TService>
- {
- /// <summary>
- /// The service type to be created.
- /// </summary>
- public Type ServiceType => typeof(TService);
- /// <summary>
- /// The name of the service to be created.
- /// </summary>
- public string ServiceName { get; set; }
- /// <summary>
- /// The actual <see cref="IServiceContainer" />
- /// that ultimately will hold the service instance.
- /// </summary>
- public IServiceContainer Container { get; set; }
- }
- }