Czlovek.RabbitMq 3.0.0-beta.10

This is a prerelease version of Czlovek.RabbitMq.
dotnet add package Czlovek.RabbitMq --version 3.0.0-beta.10
                    
NuGet\Install-Package Czlovek.RabbitMq -Version 3.0.0-beta.10
                    
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.10" />
                    
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.10" />
                    
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.10
                    
#r "nuget: Czlovek.RabbitMq, 3.0.0-beta.10"
                    
#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.10
                    
#: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.10&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Czlovek.RabbitMq&version=3.0.0-beta.10&prerelease
                    
Install as a Cake Tool

RabbitMq Client

A wrapper around RabbitMQ.Client 7 with pooled connections and channels, topology (exchanges, queues, bindings) declared from configuration, consumers with sensible ack/nack handling and automatic correlation IDs.

Registration

builder.Services.AddRabbitMq(builder.Configuration);

Connections are read from the RabbitMq section, keyed by name. IRabbitMqDefaultClient uses the DefaultClient connection:

{
  "RabbitMq": {
    "DefaultClient": {
      "ConnectionString": "amqp://guest:guest@localhost:5672/",
      "Management": {
        "Exchanges": [ { "ExchangeName": "orders", "Type": "topic", "Durable": true } ],
        "Queues": [ { "QueueName": "orders.created" } ],
        "Bindings": [ { "ExchangeName": "orders", "QueueName": "orders.created", "RoutingKey": "created" } ]
      }
    }
  }
}

Instead of ConnectionString you can use Host, Port, Login, Password and VirtualHost. The topology can also live in a separate JSON file referenced by ManagementConfiguration. Queues are durable by default (RabbitMQ 4 rejects non-durable, non-exclusive queues).

Sending and receiving

await rabbit.Send("orders", "created", order.Serialize());          // correlation ID: argument, current HTTP request or new GUID

await rabbit.Register("orders.created", async (body, properties, correlationId) =>
{
    var order = Encoding.UTF8.GetString(body.Span).Deserialize<Order>();
    await handler.HandleAsync(order!);
    return true;                                                     // ack
}, prefetchCount: 10);
  • true acks the message.
  • false or an exception nacks it: it is requeued on the first delivery and dead-lettered/dropped on the redelivery, so a poison message cannot loop forever.
  • Stop() stops all consumers of the client (call it from IHostedService.StopAsync).

More connections

public interface IAuditSessionManager : IRabbitMqSessionManagerBase;
public class AuditSessionManager(IRabbitMqConfigurationProvider p, ILogger<RabbitMqChannelManager> l, IRabbitMqChannelManager m)
    : RabbitMqSessionManagerBase("Audit", p, l, m), IAuditSessionManager;

public interface IAuditClient : IRabbitMqClientBase;
public class AuditClient(ILogger<RabbitMqClientBase> l, IAuditSessionManager s) : RabbitMqClientBase(l, s), IAuditClient;

services.AddSingleton<IAuditSessionManager, AuditSessionManager>().AddSingleton<IAuditClient, AuditClient>();
Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
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.10 46 11/22/2026
3.0.0-beta.9 50 11/22/2026
3.0.0-beta.8 56 11/21/2026
3.0.0-beta.6 80 9/29/2026
3.0.0-beta.5 88 9/27/2026
3.0.0-beta.4 65 9/27/2026
3.0.0-beta.3 64 9/27/2026
3.0.0-beta.2 68 9/27/2026
3.0.0-beta.1 95 7/19/2026
2.1.0-beta.85 88 6/16/2026
2.1.0-beta.84 76 5/7/2026
2.1.0-beta.83 82 5/7/2026
2.1.0-beta.82 126 3/20/2026
2.1.0-beta.81 103 2/21/2026
2.1.0-beta.80 98 2/21/2026
2.1.0-beta.79 100 2/13/2026
2.1.0-beta.78 104 2/11/2026
2.1.0-beta.77 101 2/11/2026
2.1.0-beta.76 95 2/10/2026
2.1.0-beta.75 107 2/10/2026
Loading failed