using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HKControl { internal class CommunicationBase { /// /// 连接成功 /// public Action ConnectOk { get; set; } /// /// 连接失败 /// public Action ConnectFail { get; set; } /// /// 断开连接 /// public Action Disconnect { get; set; } /// /// 设置是否重连 /// true=启用重连,false=禁用重连 /// public bool IsReconnect { get; set; } = true; } }