public static ConfigurationResult CompileResults(IEnumerable<ValidationResult> results)
		{
			var result = new ConfigurationResultImpl(results);

			if (result.ContainsFailure)
			{
				string message = "The service bus was not properly configured:" +
				                 Environment.NewLine +
				                 string.Join(Environment.NewLine, result.Results.Select(x => x.Message).ToArray());

				throw new ConfigurationException(result, message);
			}

			return result;
		}
예제 #2
0
        public static ConfigurationResult CompileResults(IEnumerable <ValidationResult> results)
        {
            var result = new ConfigurationResultImpl(results);

            if (result.ContainsFailure)
            {
                string message = "The service bus was not properly configured:" +
                                 Environment.NewLine +
                                 string.Join(Environment.NewLine, result.Results.Select(x => x.ToString()).ToArray());

                throw new ConfigurationException(result, message);
            }

            return(result);
        }