Tests.IntegrationTestsBase.StartWebServer C# (CSharp) Method

StartWebServer() protected method

protected StartWebServer ( ) : void
return void
        protected void StartWebServer()
        {
            try
            {
                var basePath = FindAppMetricsPath();
                Trace.WriteLine(string.Format("Starting CassiniDev server ({0})", basePath));
                if (_port == 0)
                    _port = FindFreePort();
                _server.StartServer(basePath, _port, "/AppMetrics", "");
                return;
            }
            catch (InvalidOperationException operationException)
            {
                if (operationException.Message.Contains("Server already started"))
                    return;

                throw;
            }
        }