Ejemplo n.º 1
0
        private bool checkWebApplication(out string errorDescription)
        {
            errorDescription = string.Empty;

            var  reply   = new WebClientHelper(checkUrl).PerformPostRequest();
            bool isValid = reply.StartsWith("OK", StringComparison.InvariantCultureIgnoreCase);

            if (!isValid)
            {
                errorDescription = string.Format("Web app wasn't loaded: {0}", reply);
            }

            return(isValid);
        }