public void appendLog_Process(int seqid, TProtocol iprot, TProtocol oprot) { appendLog_args args = new appendLog_args(); args.Read(iprot); iprot.ReadMessageEnd(); appendLog_result result = new appendLog_result(); result.Success = iface_.appendLog(args.Req); oprot.WriteMessageBegin(new TMessage("appendLog", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public AppendLogResponse recv_appendLog() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } appendLog_result result = new appendLog_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return(result.Success); } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "appendLog failed: unknown result"); }