public void set_keyspace_Process(int seqid, TProtocol iprot, TProtocol oprot) { set_keyspace_args args = new set_keyspace_args(); args.Read(iprot); iprot.ReadMessageEnd(); set_keyspace_result result = new set_keyspace_result(); try { iface_.set_keyspace(args.Keyspace); } catch (InvalidRequestException ire) { result.Ire = ire; } oprot.WriteMessageBegin(new TMessage("set_keyspace", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public void recv_set_keyspace() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } set_keyspace_result result = new set_keyspace_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.ire) { throw result.Ire; } return; }