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