示例#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);
     }
 }