Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 1.28 KB

README.md

File metadata and controls

30 lines (21 loc) · 1.28 KB

EventBroker

build NuGet

EventBroker is an implementation of publish/subscribe pattern.

Specifics

  • 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

Usage

check out the wiki

Breaking Changes

version 2.x is not backward compatible with version 1.x

  • IEventHandler has new method OnError
  • EventBroker now takes an IEventHandlerRunner parameter instead of thread count
  • instead of factory delegate EventBroker now has optional IEventHandlerFactory parameter
  • global error handling in EventBroker is now moved to IEventHandler.OnError