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

http://github.com/philiplaureano/LinFu · C# · 21 lines · 9 code · 1 blank · 11 comment · 0 complexity · 179c0e4fefbf1f5aa1985df464ef128d MD5 · raw file

  1. using System;
  2. using LinFu.IoC.Interfaces;
  3. namespace LinFu.IoC.Configuration
  4. {
  5. /// <summary>
  6. /// Represents the <c>internal</c> context class that will be used to
  7. /// incrementally build enough information to initialize
  8. /// a specific <typeparamref name="TService" /> type once
  9. /// that service has been instantiated.
  10. /// </summary>
  11. /// <typeparam name="TService">The service type to be created.</typeparam>
  12. internal class ActionContext<TService> : BaseContext<TService>
  13. {
  14. /// <summary>
  15. /// The action that will be performed on an <see cref="IServiceContainer" />
  16. /// instance once the fluent command executes.
  17. /// </summary>
  18. public Action<IServiceContainer, TService> Action { get; set; }
  19. }
  20. }