public void send_create_database(Database database) { oprot_.WriteMessageBegin(new TMessage("create_database", TMessageType.Call, seqid_)); create_database_args args = new create_database_args(); args.Database = database; args.Write(oprot_); oprot_.WriteMessageEnd(); oprot_.Transport.Flush(); }
public void create_database_Process(int seqid, TProtocol iprot, TProtocol oprot) { create_database_args args = new create_database_args(); args.Read(iprot); iprot.ReadMessageEnd(); create_database_result result = new create_database_result(); try { iface_.create_database(args.Database); } catch (AlreadyExistsException o1) { result.O1 = o1; } catch (InvalidObjectException o2) { result.O2 = o2; } catch (MetaException o3) { result.O3 = o3; } oprot.WriteMessageBegin(new TMessage("create_database", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }