Exemplo n.º 1
0
 /// <summary>
 /// Logins this instance.
 /// </summary>
 /// <returns>Boolean.</returns>
 public Boolean Login()
 {
     LoggedIn = SeSecurity.Login();
     if (LoggedIn)
     {
         return(LoggedIn);
     }
     PsLogger.Fatal("Unable to login to {0} with {1}", SeSecurity.ProSightServer, SeSecurity.User);
     return(false);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Logins this instance.
 /// </summary>
 /// <returns>Boolean.</returns>
 public Boolean Login()
 {
     try
     {
         LoggedIn = SeSecurity.Login();
         if (LoggedIn)
         {
             return(LoggedIn);
         }
         PsLogger.Fatal("Unable to login to {0} with {1}", SeSecurity.ProSightServer, SeSecurity.User);
         return(false);
     }
     catch (Exception ex)
     {
         PsLogger.Fatal(ex.Message);
         PsLogger.Error(ex.InnerException);
     }
     return(false);
 }