using Apewer.Network; using System; using System.Collections.Generic; using System.Diagnostics; using System.Text; namespace Apewer.Web { internal sealed class ApiContext { internal ApiInvoker _invoker = null; internal ApiEntries _entries = null; internal ApiEntry _entry = null; internal ApiProvider _provider = null; internal Action _catcher = null; internal ApiOptions _options = null; internal Stopwatch _stopwatch = null; internal Uri _url = null; internal HttpMethod _method = HttpMethod.NULL; internal ApiRequest _request = null; internal ApiResponse _ersponse = null; public ApiInvoker Invoker { get => _invoker; } public ApiEntries Entries { get => _entries; } public ApiEntry Entry { get => _entry; } public ApiProvider Provider { get => _provider; } public Action Catcher { get => _catcher; } public ApiOptions Options { get => _options; } public Stopwatch Stopwatch { get => _stopwatch; } public Uri Url { get => _url; } public HttpMethod Method { get => _method; } public ApiRequest Request { get => _request; } public ApiResponse Response { get => Response; } internal ApiContext() { } } }