public void GetComponents_Process(int seqid, TProtocol iprot, TProtocol oprot) { GetComponents_args args = new GetComponents_args(); args.Read(iprot); iprot.ReadMessageEnd(); GetComponents_result result = new GetComponents_result(); result.Success = iface_.GetComponents(); oprot.WriteMessageBegin(new TMessage("GetComponents", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public List<string> recv_GetComponents() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } GetComponents_result result = new GetComponents_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "GetComponents failed: unknown result"); }