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