watermill icon indicating copy to clipboard operation
watermill copied to clipboard

CorrelationID does not work with CQRS Facade

Open cotton-more opened this issue 4 years ago • 1 comments

CommandProcessor.AddHandlersToRouter uses internally AddNoPublisherHandler to add a handler to a router CorrelationID middleware does not work. Since it assumes that the handler should return a list of new messages but AddNoPublisherHandler wraps the call into a function and always returns nil instead of messages.

When I try to wire everything manually, adds handlers to a router then the middleware works fine.

cotton-more avatar Jan 27 '21 17:01 cotton-more

Some code snippets would help us understand the issue (I know it's been a long time). CQRS facade assumes that messages will be published using the provider Publisher, not the handler functions.

m110 avatar Jan 24 '23 22:01 m110