Bloom.Api.ServerBase.VerifyWeAreNowListening C# (CSharp) Method

VerifyWeAreNowListening() private static method

private static VerifyWeAreNowListening ( ) : void
return void
        private static void VerifyWeAreNowListening()
        {
            try
            {
                var x = new WebClientWithTimeout {Timeout = 3000};

                if("OK" != x.DownloadString(ServerUrlWithBloomPrefixEndingInSlash + "testconnection"))
                {
                    throw new ApplicationException(GetServerStartFailureMessage());
                }
            }
            catch(Exception error)
            {
                SIL.Reporting.ErrorReport.NotifyUserOfProblem(error,GetServerStartFailureMessage());
                Application.Exit();
            }
        }