Czlovek.RabbitMq 3.0.0-beta.1

This is a prerelease version of Czlovek.RabbitMq.
dotnet add package Czlovek.RabbitMq --version 3.0.0-beta.1
                    
NuGet\Install-Package Czlovek.RabbitMq -Version 3.0.0-beta.1
                    
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="Czlovek.RabbitMq" Version="3.0.0-beta.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Czlovek.RabbitMq" Version="3.0.0-beta.1" />
                    
Directory.Packages.props
<PackageReference Include="Czlovek.RabbitMq" />
                    
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 Czlovek.RabbitMq --version 3.0.0-beta.1
                    
#r "nuget: Czlovek.RabbitMq, 3.0.0-beta.1"
                    
#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 Czlovek.RabbitMq@3.0.0-beta.1
                    
#: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=Czlovek.RabbitMq&version=3.0.0-beta.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Czlovek.RabbitMq&version=3.0.0-beta.1&prerelease
                    
Install as a Cake Tool

RabbitMq Client

A wrapper around RabbitMQ.Client that manages connections, channel pooling and topology (exchanges/queues/bindings) declared through configuration, and exposes a simple publish/subscribe API.

Usage

Registration

services.AddRabbitMq(configuration);

Configuration is read from the RabbitMq section, keyed by connection name, and declares the exchanges, queues and bindings to create on startup:

{
  "RabbitMq": {
    "Default": {
      "HostName": "localhost",
      "UserName": "guest",
      "Password": "guest",
      "Management": {
        "Exchanges": [ { "ExchangeName": "orders", "Type": "topic" } ],
        "Queues": [ { "QueueName": "orders.created" } ],
        "Bindings": [ { "ExchangeName": "orders", "QueueName": "orders.created", "RoutingKey": "created" } ]
      }
    }
  }
}

Sending and receiving messages

IRabbitMqDefaultClient is registered for the Default connection:

await rabbitMqDefaultClient.Send("orders", "created", message.Serialize());

await rabbitMqDefaultClient.Register("orders.created", async (body, properties, correlationId) =>
{
    // process body, return true to ack
    return true;
});

Channels and connections are pooled internally; Register starts a listener on the given queue, and Send publishes to the given exchange/routing key, tagging the message with a correlation ID (from the current HTTP request, if available, or a new one).

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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
3.0.0-beta.1 62 7/19/2026
2.1.0-beta.85 66 6/16/2026
2.1.0-beta.84 59 5/7/2026
2.1.0-beta.83 62 5/7/2026
2.1.0-beta.82 107 3/20/2026
2.1.0-beta.81 83 2/21/2026
2.1.0-beta.80 83 2/21/2026
2.1.0-beta.79 85 2/13/2026
2.1.0-beta.78 84 2/11/2026
2.1.0-beta.77 81 2/11/2026
2.1.0-beta.76 80 2/10/2026
2.1.0-beta.75 88 2/10/2026
2.1.0-beta.74 76 1/28/2026
2.1.0-beta.73 210 11/6/2025
2.1.0-beta.72 199 11/6/2025
2.1.0-beta.71 197 11/4/2025
2.1.0-beta.70 187 11/4/2025
2.1.0-beta.69 188 11/4/2025
2.1.0-beta.68 199 11/4/2025
2.1.0-beta.67 208 11/2/2025
Loading failed