Exemple #1
0
        public void Stop()
        {
            if (_casinniServer == null)
            {
                LoggerClient.Log("Cassini was not started by this process ... ");
                return;
            }

            LoggerClient.Log("Cassini stopping ... ");

            _casinniServer.Stop();
            _casinniServer.InitializeLifetimeService();
            try {
                DeleporterUtilities.WaitForLocalPortToBecomeAvailable(DeleporterConfiguration.WebHostPort);
                LoggerClient.Log("Cassini Stopped");
            }
            catch (Exception exception)
            {
                LoggerClient.Log("FAILURE: Cassini did not appear to release port {0} within 10 seconds.  Please make sure that Selenium Server is shut down first."
                                 , DeleporterConfiguration.WebHostPort);
                throw new Exception(string.Format("Cassini did not appear to release port {0} within 10 seconds.  Please make sure that Selenium Server is shut down first."
                                                  , DeleporterConfiguration.WebHostPort), exception);
            } finally {
                LoggerClient.Dispose();
            }
        }
Exemple #2
0
        public void Stop()
        {
            if (_iisExpressProcess == null)
            {
                LoggerClient.Log("IIS Express was not started by this process ... ");
                return;
            }

            LoggerClient.Log("IIS Express Stopping ... ");
            _iisExpressProcess.Kill();

            try
            {
                DeleporterUtilities.WaitForLocalPortToBecomeAvailable(DeleporterConfiguration.WebHostPort);
                LoggerClient.Log("IIS Express Stopped");
            }
            catch (Exception exception)
            {
                var message = string.Format("IIS Express did not appear to release port {0} within 10 seconds.  " +
                                            "Please make sure that Selenium Server is shut down first.", DeleporterConfiguration.WebHostPort);
                LoggerClient.Log(message);
                throw new Exception(message, exception);
            }
            finally
            {
                LoggerClient.Dispose();
            }
        }
Exemple #3
0
 public void Stop()
 {
     if (this._seleniumServer != null)
     {
         LoggerClient.Log("Selenium Instance stopping ... ");
         this._seleniumServer.Kill();
         DeleporterUtilities.WaitForLocalPortToBecomeAvailable(DeleporterConfiguration.SeleniumServerPort);
         LoggerClient.Log("Selenium Stopped");
     }
 }