KrapkaNet.Messaging.RabbitMq
0.0.40-PR006-15
dotnet add package KrapkaNet.Messaging.RabbitMq --version 0.0.40-PR006-15
NuGet\Install-Package KrapkaNet.Messaging.RabbitMq -Version 0.0.40-PR006-15
<PackageReference Include="KrapkaNet.Messaging.RabbitMq" Version="0.0.40-PR006-15" />
<PackageVersion Include="KrapkaNet.Messaging.RabbitMq" Version="0.0.40-PR006-15" />
<PackageReference Include="KrapkaNet.Messaging.RabbitMq" />
paket add KrapkaNet.Messaging.RabbitMq --version 0.0.40-PR006-15
#r "nuget: KrapkaNet.Messaging.RabbitMq, 0.0.40-PR006-15"
#:package KrapkaNet.Messaging.RabbitMq@0.0.40-PR006-15
#addin nuget:?package=KrapkaNet.Messaging.RabbitMq&version=0.0.40-PR006-15&prerelease
#tool nuget:?package=KrapkaNet.Messaging.RabbitMq&version=0.0.40-PR006-15&prerelease
KrapkaNet.Messaging.RabbitMq
RabbitMqConnection manages RabbitMQ channels for JSON publications and deliveries. Supply connection settings, an exchange declaration callback and a logger. The application owns its routing keys, queue names, durability settings and bindings.
await using var connection = new RabbitMqConnection(settings, DeclareExchangeAsync, logger);
await connection.ConsumeAsync<InvoiceIssued>(
PrepareInvoiceQueueAsync,
(_, invoice, _, token) => handler.HandleAsync(invoice, token),
readiness: null,
stoppingToken: stoppingToken);
PrepareInvoiceQueueAsync(IChannel, CancellationToken) declares the exchange, queue and bindings and returns the queue name. The consumer runs it again after reconnecting. Each subscription uses a separate channel, prefetches one delivery, and acknowledges after the handler succeeds. A deserializer can throw JsonException to reject malformed payloads without requeueing. Handler or acknowledgement failures close the channel, allowing RabbitMQ to redeliver outstanding work. Handlers must tolerate repeated deliveries.
PublishAsync serializes concurrent publications on a publisher-confirm channel. By default, before the first publish to a named exchange on that channel, it calls DeclareExchangeAsync(IChannel, string, CancellationToken) to declare the application's topology. Set ensureTopology: false to publish to an exchange and bindings provisioned by another component. The caller supplies message properties, including persistence, and selects mandatory routing when an unroutable message should fail. The default exchange supports direct replies to a caller's reply queue.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. 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. |
-
net8.0
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.3)
- RabbitMQ.Client (>= 7.3.0)
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.0.40-PR006-15 | 81 | 12/4/2026 |
| 0.0.40-PR006-11 | 55 | 12/4/2026 |