Пример #1
0
 private void performUninstall()
 {
     try
     {
         ExchangeHelper.uninstallTransportAgent();
     } catch (ExchangeHelperException e) {
         MessageBox.Show(e.Message, "Uninstall error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     this.updateVersions();
 }
Пример #2
0
 private string startService()
 {
     try
     {
         ExchangeHelper.startTransportService();
         return(null);
     }
     catch (ExchangeHelperException ex)
     {
         return(ex.Message);
     }
     catch (Exception ex)
     {
         return(ex.Message);
     }
 }
Пример #3
0
        /// <summary>
        /// Update the current available and installed version info
        /// </summary>
        private void updateVersions()
        {
            // Get Exchange.DkimSigner version installed
            txtDkimSignerInstalled.Text = "Loading ...";
            Thread thDkimSignerInstalled = new Thread(new ThreadStart(this.CheckDkimSignerInstalledSafe));

            thDkimSignerInstalled.Start();

            // Get Exchange.DkimSigner version available
            txtDkimSignerAvailable.Text = "Loading ...";
            Thread thDkimSignerAvailable = new Thread(new ThreadStart(this.CheckDkimSignerAvailableSafe));

            thDkimSignerAvailable.Start();

            // Get Exchange version installed + load the current configuration
            txtExchangeInstalled.Text = ExchangeHelper.checkExchangeVersionInstalled();
        }
Пример #4
0
 private string stopService()
 {
     if (!ExchangeHelper.isTransportServiceRunning())
     {
         return(null);
     }
     try
     {
         ExchangeHelper.stopTransportService();
         return(null);
     }
     catch (ExchangeHelperException ex)
     {
         return(ex.Message);
     }
     catch (Exception ex)
     {
         return(ex.Message);
     }
 }
Пример #5
0
 private string installAgent()
 {
     try
     {
         if (ExchangeHelper.isAgentInstalled())
         {
             return(null);
         }
         ExchangeHelper.installTransportAgent();
         return(null);
     }
     catch (ExchangeHelperException ex)
     {
         return(ex.Message);
     }
     catch (Exception ex)
     {
         return(ex.Message);
     }
 }