EventBroker is an implementation of publish/subscribe pattern.
- in-memory, in-process scope
- publishing is 'Fire and Forget' style
- events don't need to implement specific interface
- event handlers are runned on background threads
- event handlers can provide filter for the events they want to handle
- can use different strategies for running event handlers
- provides different ways for subscribing that can be used side by side
- subscriptions are based on the event type
check out the wiki
version 2.x is not backward compatible with version 1.x
IEventHandler
has new methodOnError
EventBroker
now takes anIEventHandlerRunner
parameter instead of thread count- instead of factory delegate
EventBroker
now has optionalIEventHandlerFactory
parameter - global error handling in
EventBroker
is now moved toIEventHandler.OnError