예제 #1
0
 private Proto.Msg.Read ReadToProto(Read read)
 {
     return(new Proto.Msg.Read
     {
         Key = read.Key
     });
 }
예제 #2
0
        private Proto.Msg.Read ReadToProto(Read read)
        {
            var proto = new Proto.Msg.Read
            {
                Key = read.Key
            };

            if (!(read.FromNode is null))
            {
                proto.FromNode = SerializationSupport.UniqueAddressToProto(read.FromNode);
            }
            return(proto);
        }