Exemplo n.º 1
0
 public virtual void TestRpcClientId()
 {
     byte[] uuid = ClientId.GetClientId();
     RpcHeaderProtos.RpcRequestHeaderProto header = ProtoUtil.MakeRpcRequestHeader(RPC.RpcKind
                                                                                   .RpcProtocolBuffer, RpcHeaderProtos.RpcRequestHeaderProto.OperationProto.RpcFinalPacket
                                                                                   , 0, RpcConstants.InvalidRetryCount, uuid);
     Assert.True(Arrays.Equals(uuid, header.GetClientId().ToByteArray
                                   ()));
 }