Esempio n. 1
0
 private void CheckDbConnectivity()
 {
     if (!ServerConnectivity.IsDbServerAvailable())
     {
         this.RedirectToOfflinePage();
     }
 }
Esempio n. 2
0
 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();
     }
 }