Skip to content

Conversation

scottjferguson
Copy link
Contributor

Added CorrelationId property, ErrorWithCorrelationId() factory method and unit test

Added CorrelationId property, ErrorWithCorrelationId() factory method and unit test
@ardalis
Copy link
Owner

ardalis commented Mar 21, 2023

Looks good.

@ardalis ardalis merged commit 3aa4379 into ardalis:main Mar 21, 2023
@ardalis
Copy link
Owner

ardalis commented Mar 21, 2023

Fixes #120

@corfor
Copy link

corfor commented Oct 25, 2023

May I ask, is there a reason why CorrelationId is not used for other statuses as well? Why only ErrorWithCorrelationId()?

@corfor
Copy link

corfor commented Oct 25, 2023

I've got in mind semantics like:

var result = Result<AvailabilitySchedule>.NotFound($"Availability Schedule for part \"{partId}\" not found.")
    .WithCorrelationId(correlationId);

@ardalis
Copy link
Owner

ardalis commented Oct 26, 2023

I mean it might make sense to just have everywhere, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants