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();
}
}