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.

преди 2 години
1234567891011121314151617181920212223242526272829303132
  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. }