Add a CorrelationId to MessageContext that will help to follow a sequence of messages (commands or events).
It should be fairly simple : a new id is generated and used when a new message is created and then all the following messages that will be created by the handlers of this message will simply use and forward the given correlation id.
This id could be a Guid or something else, like Originator + MessageId + Timestamp ?
Add a CorrelationId to MessageContext that will help to follow a sequence of messages (commands or events).
It should be fairly simple : a new id is generated and used when a new message is created and then all the following messages that will be created by the handlers of this message will simply use and forward the given correlation id.
This id could be a Guid or something else, like
Originator + MessageId + Timestamp?