//public abstract AbsProtocolBuilder<TPackage> Clone(); /// <summary> /// 发布收数事件 /// </summary> /// <param name="args"></param> protected void PublishData(DataReceivedArgs <TPackage> args) { if (m_socket != null) { m_socket.PublishSocketDataReceived(args); } }
protected void Callback_SocketDataReceived(object sender, DataReceivedArgs <TPackage> args) { if (OnDataReceivedEvent != null) { OnDataReceivedEvent(sender, args); } }
private void Client_OnDataReceivedEvent(object arg1, DataReceivedArgs <TPackage> arg2) { if (OnDataReceivedEvent != null) { OnDataReceivedEvent(this, arg2); } }
internal void PublishSocketDataReceived(DataReceivedArgs <TPackage> args) { Callback_SocketDataReceived(this, args); }