You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.3 KiB

3 years ago
  1. using Apewer.Network;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Diagnostics;
  5. using System.Text;
  6. namespace Apewer.Web
  7. {
  8. internal sealed class ApiContext
  9. {
  10. internal ApiInvoker _invoker = null;
  11. internal ApiEntries _entries = null;
  12. internal ApiEntry _entry = null;
  13. internal ApiProvider _provider = null;
  14. internal Action<ApiCatch> _catcher = null;
  15. internal ApiOptions _options = null;
  16. internal Stopwatch _stopwatch = null;
  17. internal Uri _url = null;
  18. internal HttpMethod _method = HttpMethod.NULL;
  19. internal ApiRequest _request = null;
  20. internal ApiResponse _ersponse = null;
  21. public ApiInvoker Invoker { get => _invoker; }
  22. public ApiEntries Entries { get => _entries; }
  23. public ApiEntry Entry { get => _entry; }
  24. public ApiProvider Provider { get => _provider; }
  25. public Action<ApiCatch> Catcher { get => _catcher; }
  26. public ApiOptions Options { get => _options; }
  27. public Stopwatch Stopwatch { get => _stopwatch; }
  28. public Uri Url { get => _url; }
  29. public HttpMethod Method { get => _method; }
  30. public ApiRequest Request { get => _request; }
  31. public ApiResponse Response { get => Response; }
  32. internal ApiContext() { }
  33. }
  34. }