ServiceStateEventArgs.cs 903 B

123456789101112131415161718192021222324252627282930313233343536
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using TouchSocket.Core;
  7. namespace TouchSocket.Sockets
  8. {
  9. /// <summary>
  10. /// 服务器状态事件参数
  11. /// </summary>
  12. public class ServiceStateEventArgs: MsgEventArgs
  13. {
  14. /// <summary>
  15. /// 服务器状态事件参数
  16. /// </summary>
  17. /// <param name="serverState"></param>
  18. /// <param name="exception"></param>
  19. public ServiceStateEventArgs(ServerState serverState,Exception exception)
  20. {
  21. ServerState = serverState;
  22. Exception = exception;
  23. }
  24. /// <summary>
  25. /// 服务器状态
  26. /// </summary>
  27. public ServerState ServerState { get; }
  28. /// <summary>
  29. /// 异常类
  30. /// </summary>
  31. public Exception Exception { get; }
  32. }
  33. }