ExecutionContext.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * Copyright (C) Alibaba Cloud Computing
  3. * All rights reserved.
  4. *
  5. * 版权所有 (C)阿里云计算有限公司
  6. */
  7. using System.Collections.Generic;
  8. using Aliyun.OSS.Common.Authentication;
  9. using Aliyun.OSS.Common.Handlers;
  10. using Aliyun.OSS.Commands;
  11. namespace Aliyun.OSS.Common.Communication
  12. {
  13. internal class ExecutionContext
  14. {
  15. /// <summary>
  16. /// List of HTTP response handlers.
  17. /// </summary>
  18. private readonly IList<IResponseHandler> _responseHandlers = new List<IResponseHandler>();
  19. /// <summary>
  20. /// Gets or sets the request signer.
  21. /// </summary>
  22. public IRequestSigner Signer { get; set; }
  23. /// <summary>
  24. /// Gets or sets the credentials.
  25. /// </summary>
  26. public ICredentials Credentials { get; set ;}
  27. /// <summary>
  28. /// Gets the list of <see cref="IResponseHandler" />.
  29. /// </summary>
  30. public IList<IResponseHandler> ResponseHandlers
  31. {
  32. get { return _responseHandlers; }
  33. }
  34. /// <summary>
  35. /// Gets or sets a concrete command associate with this context.
  36. /// </summary>
  37. public OssCommand Command { get; set; }
  38. }
  39. }