25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
728 B

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace HKControl
  7. {
  8. internal class CommunicationBase
  9. {
  10. /// <summary>
  11. /// 连接成功
  12. /// </summary>
  13. public Action ConnectOk { get; set; }
  14. /// <summary>
  15. /// 连接失败
  16. /// </summary>
  17. public Action ConnectFail { get; set; }
  18. /// <summary>
  19. /// 断开连接
  20. /// </summary>
  21. public Action Disconnect { get; set; }
  22. /// <summary>
  23. /// 设置是否重连
  24. /// true=启用重连,false=禁用重连
  25. /// </summary>
  26. public bool IsReconnect { get; set; } = true;
  27. }
  28. }