Ejemplo n.º 1
0
 public void execute_prepared_cql3_query_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   execute_prepared_cql3_query_args args = new execute_prepared_cql3_query_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   execute_prepared_cql3_query_result result = new execute_prepared_cql3_query_result();
   try {
     result.Success = iface_.execute_prepared_cql3_query(args.ItemId, args.Values, args.Consistency);
   } catch (InvalidRequestException ire) {
     result.Ire = ire;
   } catch (UnavailableException ue) {
     result.Ue = ue;
   } catch (TimedOutException te) {
     result.Te = te;
   } catch (SchemaDisagreementException sde) {
     result.Sde = sde;
   }
   oprot.WriteMessageBegin(new TMessage("execute_prepared_cql3_query", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
Ejemplo n.º 2
0
 public void send_execute_prepared_cql3_query(int itemId, List<byte[]> values, ConsistencyLevel consistency)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("execute_prepared_cql3_query", TMessageType.Call, seqid_));
   execute_prepared_cql3_query_args args = new execute_prepared_cql3_query_args();
   args.ItemId = itemId;
   args.Values = values;
   args.Consistency = consistency;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }