Czlovek.RabbitMq
3.0.0-beta.10
dotnet add package Czlovek.RabbitMq --version 3.0.0-beta.10
NuGet\Install-Package Czlovek.RabbitMq -Version 3.0.0-beta.10
<PackageReference Include="Czlovek.RabbitMq" Version="3.0.0-beta.10" />
<PackageVersion Include="Czlovek.RabbitMq" Version="3.0.0-beta.10" />
<PackageReference Include="Czlovek.RabbitMq" />
paket add Czlovek.RabbitMq --version 3.0.0-beta.10
#r "nuget: Czlovek.RabbitMq, 3.0.0-beta.10"
#:package Czlovek.RabbitMq@3.0.0-beta.10
#addin nuget:?package=Czlovek.RabbitMq&version=3.0.0-beta.10&prerelease
#tool nuget:?package=Czlovek.RabbitMq&version=3.0.0-beta.10&prerelease
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);
trueacks the message.falseor 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 fromIHostedService.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 | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Czlovek.HttpCommunication (>= 3.0.0-beta.10)
- Czlovek.Json (>= 3.0.0-beta.10)
- RabbitMQ.Client (>= 7.2.2)
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 |