Skip to content

GaryMcWhorter/Bussin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bussin

A bussin' event bus implementation built on top of R3 Subjects

Getting Started

Bussin isn't on Nuget, so you'll have to integrate the source directly in your project or add it as a submodule.

Prerequisites

Bussin was written with .net 8.0 in mind, but may be backwards compatible with earlier versions.

Usage

// Make a bus
var bus = new Bus();

// Subscribe to something...
var subscription = bus.GetEvent<string>().Subscribe(e => Console.WriteLine(e));

// Publish something...
bus.Publish("Hello");

// Maybe you want to cache a publisher...
var publisher = bus.GetPublisher<string>();
publisher.Publish("World!");

// Don't forget to dispose subscriptions!
subscription.Dispose();

About

A Bussin' Message Bus Library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages