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 send_InsertOrUpdate(long rowId, short columnId, byte[] value, int ttl) #endif { oprot_.WriteMessageBegin(new TMessage("InsertOrUpdate", TMessageType.Call, seqid_)); InsertOrUpdate_args args = new InsertOrUpdate_args(); args.RowId = rowId; args.ColumnId = columnId; args.Value = value; args.Ttl = ttl; args.Write(oprot_); oprot_.WriteMessageEnd(); #if SILVERLIGHT return oprot_.Transport.BeginFlush(callback, state); #else oprot_.Transport.Flush(); #endif }