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