We have a use case where we would like to intercept all event handlers.
There are audit data associated with all commands which are applied to
the events using the AuditDataProvider.
Some events will trigger new commands which should propagate the same
Now when an event triggers a command we want the audit data associated
with the event to be applied to the command.
My initial thoughts are to intercept the event handler method and make
the audit data available later for the AuditDataProvider to apply to
I couldn't find a generic way, provided by the framework, to intercept
the event handlers. Any thoughs on this? Where should I do this?