public void ShutdownOnlineTest() { FbConfiguration configurationSvc = new FbConfiguration(); configurationSvc.ConnectionString = BuildServicesConnectionString(); configurationSvc.DatabaseShutdown(FbShutdownMode.Forced, 10); configurationSvc.DatabaseOnline(); }
public void ShutdownOnlineTest() { var configurationSvc = new FbConfiguration(); configurationSvc.ConnectionString = BuildServicesConnectionString(FbServerType, Compression, true); configurationSvc.DatabaseShutdown(FbShutdownMode.Forced, 10); configurationSvc.DatabaseOnline(); }
public void SetPropertiesTest() { FbConfiguration configurationSvc = new FbConfiguration(); configurationSvc.ConnectionString = this.BuildServicesConnectionString(); configurationSvc.SetSweepInterval(1000); configurationSvc.SetReserveSpace(true); configurationSvc.SetForcedWrites(true); configurationSvc.DatabaseShutdown(FbShutdownMode.Forced, 10); configurationSvc.DatabaseOnline(); }
// public Boolean Shutdown() { try { FbConfiguration configurationSvc = new FbConfiguration(); configurationSvc.ConnectionString = C_Setting_DB.get_db_url(); configurationSvc.SetSweepInterval(1000); configurationSvc.SetReserveSpace(true); configurationSvc.SetForcedWrites(true); configurationSvc.DatabaseOnline(); configurationSvc.DatabaseShutdown(FbShutdownMode.Forced, 1); return(true); } catch (Exception e) { F_File.LogError(e); return(false); } }