Skip to content

Latest commit

 

History

History
42 lines (25 loc) · 1.07 KB

ReadMe.md

File metadata and controls

42 lines (25 loc) · 1.07 KB

CleanOnionArchitecture EventBus

CleanOnionArchitecture.EventBus

The EventBus library provides core requirements of eventing. They are listed below:

ISubscriptionManager

SubscriptionManager helps to matching events and their handlers and finding all registered handlers by event.

Usage

To use this library, you should follow the below steps.

Add to project

You need to add the package to your project with using following command:

dotnet add package CleanOnionArchitecture.EventBus

Also you can use Nuget UI on your IDE to get the EventBus library.

Required Namaspace

You must be sure the below namespace already decleared in your code file.

using CleanOnionArchitecture.EventBus

Dependency Registration

services.AddEventBus();

After call the AddEventBus() it returns IEventBusServiceCollection that can be using to specialize service registration methods.

The IEventBusServiceCollection is inherited from IServiceCollection.

Also this way is easy to register internal dependencies.