Inheritance: ConfigurationResult
        public static ConfigurationResult CompileResults(IEnumerable<ValidateResult> results)
        {
            var result = new ValidateConfigurationResult(results);

            if (result.ContainsFailure)
            {
                string message = "The service was not properly configured: "
                                 + Environment.NewLine
                                 + result.Message;

                throw new HostConfigurationException(message);
            }

            return result;
        }
        public static ConfigurationResult CompileResults(IEnumerable <ValidateResult> results)
        {
            var result = new ValidateConfigurationResult(results);

            if (result.ContainsFailure)
            {
                string message = "The service was not properly configured: "
                                 + Environment.NewLine
                                 + result.Message;

                throw new HostConfigurationException(message);
            }

            return(result);
        }