Hi Tom,
Thank you for the fast replay!
Yes I had a look on the example. It works quite nice when you need to publish some events.
But I'd like to publish all events on SignalR client with a single handler.
I'm too lazy to write a separate handler method for every event I have in a system.
I actually found how to do that. I've implemented my own CommandBus and in a RunCommand method after command processing I publish all new events to a SignalR hub.
I also have a suggestion.
Currently handler registry resolves handlers only by exact event type match.
What if it can resolve assignable event types as well?
Then it would be possible define a base event and a handler that can process all events inherited from the base event.
May be there is a reason to not to do that.
I'd be happy to know your opinion.
With best wishes,
Michael.