Exemplo n.º 1
0
 public void getTopologyInfoWithOpts_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   getTopologyInfoWithOpts_args args = new getTopologyInfoWithOpts_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   getTopologyInfoWithOpts_result result = new getTopologyInfoWithOpts_result();
   try {
     result.Success = iface_.getTopologyInfoWithOpts(args.Id, args.Options);
   } catch (NotAliveException e) {
     result.E = e;
   } catch (AuthorizationException aze) {
     result.Aze = aze;
   }
   oprot.WriteMessageBegin(new TMessage("getTopologyInfoWithOpts", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
Exemplo n.º 2
0
 public TopologyInfo recv_getTopologyInfoWithOpts()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   getTopologyInfoWithOpts_result result = new getTopologyInfoWithOpts_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, "getTopologyInfoWithOpts failed: unknown result");
 }