Should we have more options for including correlation ids? And if so, rather than having separate methods for all of them, would it make sense to bake it into a single parameter object, like:
public record ErrorList(IEnumerable<string> ErrorMessages, string? CorrelationId);
?
Then the factory methods would just take in (ErrorList errorList) and we wouldn't need any overloads or alternate methods.
Originally posted by @ardalis in #169 (comment)
?
Then the factory methods would just take in
(ErrorList errorList)and we wouldn't need any overloads or alternate methods.Originally posted by @ardalis in #169 (comment)