/// <summary> /// Pings the local web service to get simias started if it is not /// started already. /// </summary> /// <param name="webServiceUri">Uri that references the local web service.</param> /// <returns>True if ping was successful, otherwise false is returned.</returns> static private bool Ping(Uri webServiceUri) { bool pingSuccessful = true; try { SimiasWebService webService = new SimiasWebService(); webService.Url = webServiceUri.ToString() + "/Simias.asmx"; webService.PingSimias(); } catch { pingSuccessful = false; } return(pingSuccessful); }