/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

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