public void GetAllPorts_Process(int seqid, TProtocol iprot, TProtocol oprot) { GetAllPorts_args args = new GetAllPorts_args(); args.Read(iprot); iprot.ReadMessageEnd(); GetAllPorts_result result = new GetAllPorts_result(); try { result.Success = iface_.GetAllPorts(args.ComponentID); } catch (AsapiException asapiEx) { result.AsapiEx = asapiEx; } oprot.WriteMessageBegin(new TMessage("GetAllPorts", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public List<string> recv_GetAllPorts() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } GetAllPorts_result result = new GetAllPorts_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return result.Success; } if (result.__isset.asapiEx) { throw result.AsapiEx; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "GetAllPorts failed: unknown result"); }