/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

  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 inject a specific
  8. /// <see cref="IFactory{T}" /> instance into a container.
  9. /// </summary>
  10. /// <typeparam name="TService">The service type to be created.</typeparam>
  11. internal class InjectionContext<TService> : BaseContext<TService>
  12. {
  13. /// <summary>
  14. /// The factory method that will be used to
  15. /// instantiate the actual <typeparamref name="TService" />
  16. /// instance.
  17. /// </summary>
  18. public Func<IFactoryRequest, TService> FactoryMethod { get; set; }
  19. }
  20. }