private void CheckDbConnectivity() { if (!ServerConnectivity.IsDbServerAvailable()) { this.RedirectToOfflinePage(); } }
private void CheckDbConnectivity() { Log.Verbose("Checking if database server is available."); if (!ServerConnectivity.IsDbServerAvailable(AppUsers.GetCurrentUserDB())) { Log.Warning("Could not connect to database server."); this.RedirectToOfflinePage(); } }