Ejemplo n.º 1
0
 private void LoginThreadWithArgs()
 {
     try
        {
     authStatus = domainController.AuthenticateDomain(
      domainID, password, bSavePassword);
        }
        catch(Exception e)
        {
     Debug.PrintLine(String.Format("Exception attempting a login: {0}", e.Message));
     authStatus = new Status();
        }
        if (Completed != null)
        {
     LoginThreadCompletedHandler completedHandler =
      new LoginThreadCompletedHandler(this);
     GLib.Idle.Add(completedHandler.IdleHandler);
        }
 }
Ejemplo n.º 2
0
 private void LoginThread()
 {
     Console.WriteLine("DomainController.LoginThread()");
        try
        {
     Console.WriteLine("FIXME: Remove this temporary delay");
     System.Threading.Thread.Sleep(10000);
     authStatus = domainController.AuthenticateDomain(
      domainID, password, bSavePassword);
     Console.WriteLine("\tDone logging in");
        }
        catch(Exception e)
        {
     Console.WriteLine("\tException logging in: {0}", e.Message);
        }
        if (Completed != null)
        {
     LoginThreadCompletedHandler completedHandler =
      new LoginThreadCompletedHandler(this);
     GLib.Idle.Add(completedHandler.IdleHandler);
        }
 }
Ejemplo n.º 3
0
 private void LoginThread()
 {
     try
        {
     authStatus = domainController.AuthenticateDomain(domainID);
     if (authStatus == null ||
      ((authStatus.statusCode != StatusCodes.Success) &&
       (authStatus.statusCode != StatusCodes.SuccessInGrace)))
     {
      authStatus =
       domainController.AuthenticateDomainWithProxy(
        domainID);
     }
        }
        catch(Exception e)
        {
     Debug.PrintLine(String.Format("Exception attempting a login: {0}", e.Message));
     authStatus = new Status();
        }
        if (Completed != null)
        {
     LoginThreadCompletedHandler completedHandler =
      new LoginThreadCompletedHandler(this);
     GLib.Idle.Add(completedHandler.IdleHandler);
        }
 }
Ejemplo n.º 4
0
 private void LoginThreadWithArgs()
 {
     Console.WriteLine("DomainController.LoginThread()");
        try
        {
     authStatus = domainController.AuthenticateDomain(
      domainID, password, bSavePassword);
     Console.WriteLine("\tDone logging in");
        }
        catch(Exception e)
        {
     Console.WriteLine("Exception attempting a login: {0}", e.Message);
     authStatus = new Status();
        }
        if (Completed != null)
        {
     LoginThreadCompletedHandler completedHandler =
      new LoginThreadCompletedHandler(this);
     GLib.Idle.Add(completedHandler.IdleHandler);
        }
 }