/src/LinFu.IoC.Common/IServiceRequestResult.cs

http://github.com/philiplaureano/LinFu · C# · 45 lines · 13 code · 7 blank · 25 comment · 0 complexity · 07be144de925e6c4eb32b6ddb33bd52e MD5 · raw file

  1. using System;
  2. namespace LinFu.IoC.Interfaces
  3. {
  4. /// <summary>
  5. /// Represents the results returned when a service request
  6. /// is made against an <see cref="IServiceContainer" /> instance.
  7. /// </summary>
  8. public interface IServiceRequestResult
  9. {
  10. /// <summary>
  11. /// The name of the service being created. By default, this property is blank.
  12. /// </summary>
  13. string ServiceName { get; }
  14. /// <summary>
  15. /// The type of service being requested.
  16. /// </summary>
  17. Type ServiceType { get; }
  18. /// <summary>
  19. /// The raw object reference created by the container itself.
  20. /// </summary>
  21. object OriginalResult { get; }
  22. /// <summary>
  23. /// The result that will be returned from the container
  24. /// instead of the <see cref="OriginalResult" />.
  25. /// If this property is null, then the original result will be used.
  26. /// </summary>
  27. object ActualResult { get; set; }
  28. /// <summary>
  29. /// The container that will handle the service request.
  30. /// </summary>
  31. IServiceContainer Container { get; }
  32. /// <summary>
  33. /// Gets the value indicating the additional arguments that
  34. /// were used during the service request.
  35. /// </summary>
  36. object[] AdditionalArguments { get; }
  37. }
  38. }