示例#1
0
        public void ShutdownOnline2Test()
        {
            if (!EnsureVersion(new Version("2.5.0.0")))
            {
                return;
            }

            FbConfiguration configurationSvc = new FbConfiguration();

            configurationSvc.ConnectionString = BuildServicesConnectionString(FbServerType);

            configurationSvc.DatabaseShutdown2(FbShutdownOnlineMode.Full, FbShutdownType.ForceShutdown, 10);
            configurationSvc.DatabaseOnline2(FbShutdownOnlineMode.Normal);
        }
示例#2
0
        public void ShutdownOnline2Test()
        {
            if (!EnsureVersion(new Version(2, 5, 0, 0)))
            {
                return;
            }

            var configurationSvc = new FbConfiguration();

            configurationSvc.ConnectionString = BuildServicesConnectionString(FbServerType, Compression, WireCrypt, true);

            configurationSvc.DatabaseShutdown2(FbShutdownOnlineMode.Full, FbShutdownType.ForceShutdown, 10);
            configurationSvc.DatabaseOnline2(FbShutdownOnlineMode.Normal);
        }
示例#3
0
        public void ShutdownOnline2Test()
        {
            if (GetServerVersion() < new Version("2.5.0.0"))
            {
                Assert.Inconclusive("Not supported on this version.");
                return;
            }

            FbConfiguration configurationSvc = new FbConfiguration();

            configurationSvc.ConnectionString = BuildServicesConnectionString();

            configurationSvc.DatabaseShutdown2(FbShutdownOnlineMode.Full, FbShutdownType.ForceShutdown, 10);
            configurationSvc.DatabaseOnline2(FbShutdownOnlineMode.Normal);
        }