Пример #1
0
 public string recv_GetNodeProductName()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   GetNodeProductName_result result = new GetNodeProductName_result();
   result.Read(iprot_);
   iprot_.ReadMessageEnd();
   if (result.__isset.success) {
     return result.Success;
   }
   throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "GetNodeProductName failed: unknown result");
 }
Пример #2
0
 public void GetNodeProductName_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   GetNodeProductName_args args = new GetNodeProductName_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   GetNodeProductName_result result = new GetNodeProductName_result();
   result.Success = iface_.GetNodeProductName(args._homeId, args._nodeId);
   oprot.WriteMessageBegin(new TMessage("GetNodeProductName", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }