public void InsertOrUpdate_Process(int seqid, TProtocol iprot, TProtocol oprot) { InsertOrUpdate_args args = new InsertOrUpdate_args(); args.Read(iprot); iprot.ReadMessageEnd(); InsertOrUpdate_result result = new InsertOrUpdate_result(); try { iface_.InsertOrUpdate(args.RowId, args.ColumnId, args.Value, args.Ttl); } catch (InvalidRequestException ire) { result.Ire = ire; } oprot.WriteMessageBegin(new TMessage("InsertOrUpdate", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public void recv_InsertOrUpdate() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } InsertOrUpdate_result result = new InsertOrUpdate_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.ire) { throw result.Ire; } return; }