Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 324 Bytes

README.md

File metadata and controls

13 lines (9 loc) · 324 Bytes

events-bus

Represents dictionary with events, linked between multiple publishers and subscribers.

Quick start:

// get bus instance:
var bus = new EventsBus();

// subscribe to custom event:
bus.Subscribe<MyEvent>(e => Console.Write("My event is triggered: " + e));

// publish event:
bus.Publish(new MyEvent());