示例#1
0
        public TransportMessage Decode(byte[] data)
        {
            var message = SerializerUtilitys.Deserialize <ProtoBufTransportMessage>(data);

            return(message.GetTransportMessage());
        }
示例#2
0
        public byte[] Encode(TransportMessage message)
        {
            var transportMessage = new ProtoBufTransportMessage(message);

            return(SerializerUtilitys.Serialize(transportMessage));
        }