https://github.com/nikoo-asadnejad/internalmemoryqueue
This library provides an internal queue system that publishes events into it, allowing the queue to be processed in the background for efficient event handling.
https://github.com/nikoo-asadnejad/internalmemoryqueue
dotnet-channels dotnet-core event-bus event-driven event-sourcing eventbus events internal-memory-queue queue queues
Last synced: about 2 months ago
JSON representation
This library provides an internal queue system that publishes events into it, allowing the queue to be processed in the background for efficient event handling.
- Host: GitHub
- URL: https://github.com/nikoo-asadnejad/internalmemoryqueue
- Owner: Nikoo-Asadnejad
- Created: 2024-07-26T06:34:54.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-09-18T17:25:16.000Z (about 1 year ago)
- Last Synced: 2025-08-10T13:06:55.101Z (about 2 months ago)
- Topics: dotnet-channels, dotnet-core, event-bus, event-driven, event-sourcing, eventbus, events, internal-memory-queue, queue, queues
- Language: C#
- Homepage:
- Size: 34.2 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Internal Memory Queue and Event Bus Library
This library provides an internal queue system that publishes events into it, allowing the queue to be processed in the background for efficient event handling.
## How To Add It
To integrate `InternalMemoryQueue` and `InternalEventBus` into your application, simply add the following code to your dependency injection (DI) setup:
```csharp
services.InjectInternalEventBus();
````InjectInternalEventBus()` is an extension method available on `IServiceCollection`.
## How To Use It
1. **Create Your Event**: Inherit from `IInternalEvent` to define your custom event.
2. **Create Your Event Handler**: Inherit from `IIEventHandler` to implement your event handling logic.
3. **Inject IEventBus**: Add `IEventBus` to your service through dependency injection.
4. **Publish Your Event**: Call the `Publish` method on `eventBus` and pass your event instance to it.This streamlined process ensures your application can handle events asynchronously, enhancing performance and responsiveness.