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