How do you integrate to NServiceBus when using NEventStore?
I’m new to NSB ans ES and trying to figure out the best setup for NSB when using ES and CQRS.
I’m hooking into NSB the same way as DispatchCommit in example,
https://github.com/joliver/EventStore/blob/master/doc/EventStore.Example/MainProgram.cs
- Do you publish the whole Commit or Commit.Events?
- Do you create a wrapper around your messages because NSB requires IMessage on your messages? How do you publish to the correct queue then? Because wrapper is generic in contrast to OrderSubmittedEvent for example. If possible I don’t want dependency to NSB for my events because then I also have that in my domain.
Some code or guidance is really appreciated.
Here’s what I’m using in production: