SmartSoftware.EventBusRabbitMQ
1.0.0
dotnet add package SmartSoftware.EventBusRabbitMQ --version 1.0.0
NuGet\Install-Package SmartSoftware.EventBusRabbitMQ -Version 1.0.0
<PackageReference Include="SmartSoftware.EventBusRabbitMQ" Version="1.0.0" />
<PackageVersion Include="SmartSoftware.EventBusRabbitMQ" Version="1.0.0" />
<PackageReference Include="SmartSoftware.EventBusRabbitMQ" />
paket add SmartSoftware.EventBusRabbitMQ --version 1.0.0
#r "nuget: SmartSoftware.EventBusRabbitMQ, 1.0.0"
#:package SmartSoftware.EventBusRabbitMQ@1.0.0
#addin nuget:?package=SmartSoftware.EventBusRabbitMQ&version=1.0.0
#tool nuget:?package=SmartSoftware.EventBusRabbitMQ&version=1.0.0
SmartSoftware.EventBusRabbitMQ
Overview
SmartSoftware.EventBusRabbitMQ is a .NET library designed to simplify RabbitMQ integration in your applications. It provides flexible configuration options, dependency injection extensions, and event handling abstractions for seamless message-based communication.
Features
- Flexible Configuration: Supports connection strings, explicit parameters, and configuration sections from
appsettings.json. - Event Handling: Includes abstractions for creating and handling integration events.
- Advanced Options: Configure concurrency, exchange names, retry policies, and more.
Installation
Install the package via NuGet:
dotnet add package SmartSoftware.EventBusRabbitMQ
Example Usage
Registering the Event Bus
builder.AddRabbitMqEventBus("amqp://user:pass@host:5672/vhost", "MySubscriptionClient");
Subscribing to Events
builder.AddRabbitMqEventBus("amqp://user:pass@host:5672/vhost", "MySubscriptionClient")
.AddSubscription<TestEvent, TestEventHandler>();
Example Configuration in appsettings.json
{
"EventBus": {
"HostName": "host",
"UserName": "user",
"Password": "pass",
"VirtualHost": "/",
"Port": 5672,
"SubscriptionClientName": "MySubscriptionClient",
"ConsumerDispatchConcurrency": 4,
"ExchangeName": "CustomExchange",
"RetryCount": 5
}
}
Development Status
This package is currently in development and may undergo significant changes. Contributions and feedback are welcome!
Contributions and Inspirations
Inspired by Aspire.RabbitMQ.Client and the eShop Reference Application (https://github.com/dotnet/eShop).
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net9.0
- Microsoft.Extensions.Hosting.Abstractions (>= 9.0.3)
- Microsoft.Extensions.Logging (>= 9.0.3)
- OpenTelemetry (>= 1.12.0)
- OpenTelemetry.Extensions.Hosting (>= 1.12.0)
- Polly (>= 8.5.2)
- RabbitMQ.Client (>= 7.1.2)
- SmartSoftware.EventBus (>= 1.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 120 | 1/13/2026 |