public void send_alter_database(string dbname, Database db) { oprot_.WriteMessageBegin(new TMessage("alter_database", TMessageType.Call, seqid_)); alter_database_args args = new alter_database_args(); args.Dbname = dbname; args.Db = db; args.Write(oprot_); oprot_.WriteMessageEnd(); oprot_.Transport.Flush(); }
public void alter_database_Process(int seqid, TProtocol iprot, TProtocol oprot) { alter_database_args args = new alter_database_args(); args.Read(iprot); iprot.ReadMessageEnd(); alter_database_result result = new alter_database_result(); try { iface_.alter_database(args.Dbname, args.Db); } catch (MetaException o1) { result.O1 = o1; } catch (NoSuchObjectException o2) { result.O2 = o2; } oprot.WriteMessageBegin(new TMessage("alter_database", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }