/src/LinFu.IoC.Common/IFactoryRequest.cs

http://github.com/philiplaureano/LinFu · C# · 32 lines · 11 code · 4 blank · 17 comment · 0 complexity · cc28e1cd99160cfd068f229aed967369 MD5 · raw file

  1. using System;
  2. namespace LinFu.IoC.Interfaces
  3. {
  4. /// <summary>
  5. /// Represents the parameters made to a <see cref="IFactory" /> instance during
  6. /// a <see cref="IFactory.CreateInstance" /> method call.
  7. /// </summary>
  8. public interface IFactoryRequest
  9. {
  10. /// <summary>
  11. /// Gets or sets the value indicating the service container that made the service request.
  12. /// </summary>
  13. 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. string ServiceName { get; }
  19. /// <summary>
  20. /// Gets the value indicating the requested service type.
  21. /// </summary>
  22. Type ServiceType { get; }
  23. /// <summary>
  24. /// Gets the value indicating the additional arguments given in the factory request.
  25. /// </summary>
  26. object[] Arguments { get; }
  27. }
  28. }