Exemplo n.º 1
0
Arquivo: C4.cs Projeto: cosh/C4
 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();
 }