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.
31 lines
1.1 KiB
31 lines
1.1 KiB
using CoreAgent.ProtocolClient.Models;
|
|
|
|
namespace CoreAgent.ProtocolClient.Interfaces
|
|
{
|
|
/// <summary>
|
|
/// 协议WebSocket客户端管理器接口
|
|
/// 负责启动和停止所有协议客户端
|
|
/// </summary>
|
|
public interface IProtocolWsClientManager : IDisposable
|
|
{
|
|
/// <summary>
|
|
/// 启动所有协议客户端
|
|
/// </summary>
|
|
/// <param name="configs">协议客户端配置数组</param>
|
|
/// <returns>是否所有客户端都成功启动</returns>
|
|
bool StartAllClients(ProtocolClientConfig[] configs);
|
|
|
|
/// <summary>
|
|
/// 检查所有协议客户端连接状态
|
|
/// </summary>
|
|
/// <param name="timeoutSeconds">超时时间(秒),默认10秒</param>
|
|
/// <returns>是否所有客户端都已连接</returns>
|
|
bool CheckAllClientsConnection(int timeoutSeconds = 10);
|
|
|
|
/// <summary>
|
|
/// 停止所有协议客户端
|
|
/// </summary>
|
|
/// <returns>是否所有客户端都成功停止并断开连接</returns>
|
|
bool StopAllClients();
|
|
}
|
|
}
|