예제 #1
0
 private string ShardIdMessageFromBinary(byte[] binary)
 {
     using (var stream = new MemoryStream(binary, false))
     {
         return(ShardIdMessage.ParseFrom(stream).Shard);
     }
 }
예제 #2
0
 private ShardIdMessage ShardIdMessageToProto(string shard)
 {
     return(ShardIdMessage.CreateBuilder().SetShard(shard).Build());
 }