/// <summary> /// 分发数据 /// </summary> /// <param name="recObj"></param> protected void SendDataTo(RecDataObject recObj) { Thread dataTp = new Thread(DataTo); dataTp.IsBackground = true; dataTp.Start(recObj); }
/// <summary> /// 主动引发数据接收事件 /// </summary> /// <param name="obj"></param> public void OnRecDataEvent(RecDataObject obj) { if (!IsDelMsgAsyn) { lock (this) { RecDataEvent?.Invoke(obj); } } else { RecDataEvent?.Invoke(obj); } }