using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using TouchSocket.Core; namespace TouchSocket.Sockets { /// /// 服务器状态事件参数 /// public class ServiceStateEventArgs: MsgEventArgs { /// /// 服务器状态事件参数 /// /// /// public ServiceStateEventArgs(ServerState serverState,Exception exception) { ServerState = serverState; Exception = exception; } /// /// 服务器状态 /// public ServerState ServerState { get; } /// /// 异常类 /// public Exception Exception { get; } } }