public TransportMessage Decode(byte[] data) { var message = SerializerUtilitys.Deserialize <ProtoBufTransportMessage>(data); return(message.GetTransportMessage()); }
public byte[] Encode(TransportMessage message) { var transportMessage = new ProtoBufTransportMessage(message); return(SerializerUtilitys.Serialize(transportMessage)); }