Bytegix.Lib.EventBusRabbitMQ 0.1.5

There is a newer prerelease version of this package available.
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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Bytegix.Lib.EventBusRabbitMQ" Version="0.1.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Bytegix.Lib.EventBusRabbitMQ" Version="0.1.5" />
                    
Directory.Packages.props
<PackageReference Include="Bytegix.Lib.EventBusRabbitMQ" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Bytegix.Lib.EventBusRabbitMQ --version 0.1.5
                    
#r "nuget: Bytegix.Lib.EventBusRabbitMQ, 0.1.5"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Bytegix.Lib.EventBusRabbitMQ@0.1.5
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Bytegix.Lib.EventBusRabbitMQ&version=0.1.5
                    
Install as a Cake Addin
#tool nuget:?package=Bytegix.Lib.EventBusRabbitMQ&version=0.1.5
                    
Install as a Cake Tool

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
0.1.7-rc 113 8/17/2025
0.1.6-rc 226 8/5/2025
0.1.5 297 7/25/2025
0.1.4 493 7/22/2025