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
53 lines
1.3 KiB
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<ApiCatch> _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<ApiCatch> 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() { }
|
|
|
|
}
|
|
|
|
}
|
|
|