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.

37 lines
903 B

3 months ago
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; }
}
}