Пример #1
0
 public void EndImpersonate()
 {
     try
     {
         if (Settings.Enabled)
         {
             Impersonate.UndoImpersonation();
         }
     }
     catch (Exception ex)
     {
         //throw ex;
     }
 }
Пример #2
0
 public void BeginImpersonate()
 {
     try
     {
         if (Settings.Enabled)
         {
             Boolean activated = Impersonate.ImpersonateValidUser(Settings.Username, Settings.Domain, Settings.Password);
             if (activated)
             {
             }
             else
             {
             }
         }
         else
         {
         }
     }
     catch (Exception ex)
     {
         //throw ex;
     }
 }
Пример #3
0
 public ImpersonateHelper(Config config)
 {
     this.Config = config;
     Impersonate = new Impersonate();
 }