Bytegix.Lib.EventBusRabbitMQ
0.1.5
See the version list below for details.
dotnet add package Bytegix.Lib.EventBusRabbitMQ --version 0.1.5
NuGet\Install-Package Bytegix.Lib.EventBusRabbitMQ -Version 0.1.5
<PackageReference Include="Bytegix.Lib.EventBusRabbitMQ" Version="0.1.5" />
<PackageVersion Include="Bytegix.Lib.EventBusRabbitMQ" Version="0.1.5" />
<PackageReference Include="Bytegix.Lib.EventBusRabbitMQ" />
paket add Bytegix.Lib.EventBusRabbitMQ --version 0.1.5
#r "nuget: Bytegix.Lib.EventBusRabbitMQ, 0.1.5"
#:package Bytegix.Lib.EventBusRabbitMQ@0.1.5
#addin nuget:?package=Bytegix.Lib.EventBusRabbitMQ&version=0.1.5
#tool nuget:?package=Bytegix.Lib.EventBusRabbitMQ&version=0.1.5
Bytegix.Lib.EventBusRabbitMQ
Overview
Bytegix.Lib.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 Bytegix.Lib.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
- Bytegix.Lib.EventBus (>= 0.1.4)
- 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)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.