public void Send(MessageBase message) { var byteArray = ObjectConvert.Object2Binary(message); Logging.Debug("Send to server, data leng:" + byteArray.Length); this.client.Send(byteArray); }
private void SendToClient(MayKhach client, MessageBase message) { Logging.Debug("Send to:" + message.ToString()); client.Send(ObjectConvert.Object2Binary(message)); }