public void MsgInsert_Process(int seqid, TProtocol iprot, TProtocol oprot) { MsgInsert_args args = new MsgInsert_args(); args.Read(iprot); iprot.ReadMessageEnd(); MsgInsert_result result = new MsgInsert_result(); result.Success = iface_.MsgInsert(args.Message); oprot.WriteMessageBegin(new TMessage("MsgInsert", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public bool recv_MsgInsert() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } MsgInsert_result result = new MsgInsert_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return(result.Success); } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "MsgInsert failed: unknown result"); }