Now we have a command system and an event system. They are separate but can definitely work together.
We need to provide a link between the two systems: a CommandEventDispatcher.
This will be able to start from a Command, handle it and then publish all the events that the command triggered.
We may also only want to publish an Event from this dispatcher.
Now we have a command system and an event system. They are separate but can definitely work together.
We need to provide a link between the two systems: a CommandEventDispatcher. This will be able to start from a Command, handle it and then publish all the events that the command triggered. We may also only want to publish an Event from this dispatcher.