public void system_drop_keyspace_Process(int seqid, TProtocol iprot, TProtocol oprot) { system_drop_keyspace_args args = new system_drop_keyspace_args(); args.Read(iprot); iprot.ReadMessageEnd(); system_drop_keyspace_result result = new system_drop_keyspace_result(); try { result.Success = iface_.system_drop_keyspace(args.Keyspace); } catch (InvalidRequestException ire) { result.Ire = ire; } catch (SchemaDisagreementException sde) { result.Sde = sde; } oprot.WriteMessageBegin(new TMessage("system_drop_keyspace", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public string recv_system_drop_keyspace() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } system_drop_keyspace_result result = new system_drop_keyspace_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return result.Success; } if (result.__isset.ire) { throw result.Ire; } if (result.__isset.sde) { throw result.Sde; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "system_drop_keyspace failed: unknown result"); }