Example #1
0
 public void getTopologyConf_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   getTopologyConf_args args = new getTopologyConf_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   getTopologyConf_result result = new getTopologyConf_result();
   try {
     result.Success = iface_.getTopologyConf(args.Id);
   } catch (NotAliveException e) {
     result.E = e;
   } catch (AuthorizationException aze) {
     result.Aze = aze;
   }
   oprot.WriteMessageBegin(new TMessage("getTopologyConf", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
Example #2
0
 public string recv_getTopologyConf()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   getTopologyConf_result result = new getTopologyConf_result();
   result.Read(iprot_);
   iprot_.ReadMessageEnd();
   if (result.__isset.success) {
     return result.Success;
   }
   if (result.__isset.e) {
     throw result.E;
   }
   if (result.__isset.aze) {
     throw result.Aze;
   }
   throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "getTopologyConf failed: unknown result");
 }