public void getTopologyInfo_Process(int seqid, TProtocol iprot, TProtocol oprot) { getTopologyInfo_args args = new getTopologyInfo_args(); args.Read(iprot); iprot.ReadMessageEnd(); getTopologyInfo_result result = new getTopologyInfo_result(); try { result.Success = iface_.getTopologyInfo(args.Id); } catch (NotAliveException e) { result.E = e; } catch (AuthorizationException aze) { result.Aze = aze; } oprot.WriteMessageBegin(new TMessage("getTopologyInfo", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public TopologyInfo recv_getTopologyInfo() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } getTopologyInfo_result result = new getTopologyInfo_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, "getTopologyInfo failed: unknown result"); }