예제 #1
0
 public string recv_GetNodeProductId()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   GetNodeProductId_result result = new GetNodeProductId_result();
   result.Read(iprot_);
   iprot_.ReadMessageEnd();
   if (result.__isset.success) {
     return result.Success;
   }
   throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "GetNodeProductId failed: unknown result");
 }
예제 #2
0
 public void GetNodeProductId_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   GetNodeProductId_args args = new GetNodeProductId_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   GetNodeProductId_result result = new GetNodeProductId_result();
   result.Success = iface_.GetNodeProductId(args._homeId, args._nodeId);
   oprot.WriteMessageBegin(new TMessage("GetNodeProductId", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }