/src/LinFu.IoC/FactoryRequest.cs

http://github.com/philiplaureano/LinFu · C# · 32 lines · 12 code · 4 blank · 16 comment · 0 complexity · 8eeed62767a236946c373ed124988aff MD5 · raw file

  1. using System;
  2. using LinFu.IoC.Interfaces;
  3. namespace LinFu.IoC
  4. {
  5. /// <summary>
  6. /// Represents the default implementation of the <see cref="IFactoryRequest" /> interface.
  7. /// </summary>
  8. public class FactoryRequest : IFactoryRequest
  9. {
  10. /// <summary>
  11. /// Gets the value indicating the service container that made the service request.
  12. /// </summary>
  13. public IServiceContainer Container { get; set; }
  14. /// <summary>
  15. /// Gets the value indicating the service name.
  16. /// </summary>
  17. /// <remarks>A null service name indicates that no service name was given during the request.</remarks>
  18. public string ServiceName { get; set; }
  19. /// <summary>
  20. /// Gets the value indicating the requested service type.
  21. /// </summary>
  22. public Type ServiceType { get; set; }
  23. /// <summary>
  24. /// Gets the value indicating the additional arguments given in the factory request.
  25. /// </summary>
  26. public object[] Arguments { get; set; }
  27. }
  28. }