public string recv_GetValueUnits() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } GetValueUnits_result result = new GetValueUnits_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "GetValueUnits failed: unknown result"); }
public void GetValueUnits_Process(int seqid, TProtocol iprot, TProtocol oprot) { GetValueUnits_args args = new GetValueUnits_args(); args.Read(iprot); iprot.ReadMessageEnd(); GetValueUnits_result result = new GetValueUnits_result(); result.Success = iface_.GetValueUnits(args._id); oprot.WriteMessageBegin(new TMessage("GetValueUnits", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }