コード例 #1
0
 public void send_system_update_keyspace(KsDef ks_def)
 {
     oprot_.WriteMessageBegin(new TMessage("system_update_keyspace", TMessageType.Call, seqid_));
     system_update_keyspace_args args = new system_update_keyspace_args();
     args.Ks_def = ks_def;
     args.Write(oprot_);
     oprot_.WriteMessageEnd();
     oprot_.Transport.Flush();
 }
コード例 #2
0
 public void system_update_keyspace_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     system_update_keyspace_args args = new system_update_keyspace_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     system_update_keyspace_result result = new system_update_keyspace_result();
     try {
       result.Success = iface_.system_update_keyspace(args.Ks_def);
     } catch (InvalidRequestException ire) {
       result.Ire = ire;
     } catch (SchemaDisagreementException sde) {
       result.Sde = sde;
     }
     oprot.WriteMessageBegin(new TMessage("system_update_keyspace", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }
コード例 #3
0
ファイル: Cassandra.cs プロジェクト: achinn/fluentcassandra
 public void send_system_update_keyspace(KsDef ks_def)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("system_update_keyspace", TMessageType.Call, seqid_));
   system_update_keyspace_args args = new system_update_keyspace_args();
   args.Ks_def = ks_def;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }