Skip to content

Latest commit

 

History

History
11 lines (6 loc) · 522 Bytes

README.md

File metadata and controls

11 lines (6 loc) · 522 Bytes

Publish Subscribe Pattern Sample (Pub/Sub)

An example of publish subscribe pattern with method overloads and strategy pattern.

Publisher can send either int, Collection of Strings or an object. Which subscribers can handle, presently their handling capabilities are based on the handlers supplied to them on initialization time.

The selection of appropriate handler is achieved via Strategy Pattern.

The main flow is controlled from Program.CS in PublishSubscribeSample Project, set it as your startup project.