Esempio n. 1
0
        public async Task ShutdownOnline2Test()
        {
            if (!EnsureServerVersion(new Version(2, 5, 0, 0)))
            {
                return;
            }

            var configurationSvc = new FbConfiguration();

            configurationSvc.ConnectionString = BuildServicesConnectionString(ServerType, Compression, WireCrypt, true);
            await configurationSvc.DatabaseShutdown2Async(FbShutdownOnlineMode.Full, FbShutdownType.ForceShutdown, 10);

            await configurationSvc.DatabaseOnline2Async(FbShutdownOnlineMode.Normal);
        }