Files
DanMuRead/BarrageGrab/Proxy/ISystemProxy.cs
T

46 lines
1.1 KiB
C#
Raw Normal View History

using System;
using System.Reflection;
2023-03-09 00:33:03 +08:00
using System.Collections.Generic;
using BarrageGrab.Proxy.ProxyEventArgs;
namespace BarrageGrab.Proxy
{
2023-11-14 20:29:18 +08:00
public interface ISystemProxy : IDisposable
{
event EventHandler<WsMessageEventArgs> OnWebSocketData;
event EventHandler<HttpResponseEventArgs> OnFetchResponse;
2023-03-09 00:33:03 +08:00
2023-11-23 16:43:21 +08:00
event EventHandler<SystemProxyChangeEventArgs> OnProxyStatus;
/// <summary>
/// Http上游代理地址
/// </summary>
string HttpUpstreamProxy { get; }
/// <summary>
/// Https 上游代理地址
/// </summary>
string HttpsUpstreamProxy { get; }
/// <summary>
/// 设置上游代理地址(http+https)
/// </summary>
void SetUpstreamProxy(string addr);
2023-11-14 20:29:18 +08:00
/// <summary>
/// 关闭系统代理
/// </summary>
void CloseSystemProxy();
/// <summary>
/// 注册为系统代理
/// </summary>
void RegisterSystemProxy();
/// <summary>
/// 开始监听
/// </summary>
void Start();
}
}