Exemplo n.º 1
0
 public string recv_GetNodeType()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   GetNodeType_result result = new GetNodeType_result();
   result.Read(iprot_);
   iprot_.ReadMessageEnd();
   if (result.__isset.success) {
     return result.Success;
   }
   throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "GetNodeType failed: unknown result");
 }
Exemplo n.º 2
0
 public void GetNodeType_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   GetNodeType_args args = new GetNodeType_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   GetNodeType_result result = new GetNodeType_result();
   result.Success = iface_.GetNodeType(args._homeId, args._nodeId);
   oprot.WriteMessageBegin(new TMessage("GetNodeType", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }