Franz.Common.Messaging.Hosting.RabbitMQ
3.0.0
dotnet add package Franz.Common.Messaging.Hosting.RabbitMQ --version 3.0.0
NuGet\Install-Package Franz.Common.Messaging.Hosting.RabbitMQ -Version 3.0.0
<PackageReference Include="Franz.Common.Messaging.Hosting.RabbitMQ" Version="3.0.0" />
<PackageVersion Include="Franz.Common.Messaging.Hosting.RabbitMQ" Version="3.0.0" />
<PackageReference Include="Franz.Common.Messaging.Hosting.RabbitMQ" />
paket add Franz.Common.Messaging.Hosting.RabbitMQ --version 3.0.0
#r "nuget: Franz.Common.Messaging.Hosting.RabbitMQ, 3.0.0"
#:package Franz.Common.Messaging.Hosting.RabbitMQ@3.0.0
#addin nuget:?package=Franz.Common.Messaging.Hosting.RabbitMQ&version=3.0.0
#tool nuget:?package=Franz.Common.Messaging.Hosting.RabbitMQ&version=3.0.0
Franz.Common.Messaging.Hosting.RabbitMQ
BackgroundService integration for RabbitMQ consumers and outbox polling.
Overview
This package attaches the RabbitMQ listener to the .NET generic-host lifecycle. Broker configuration and topology are owned by Franz.Common.Messaging.RabbitMQ.
Installation
dotnet add package Franz.Common.Messaging.Hosting.RabbitMQ
RabbitMQ listener
Register the transport and then the hosted listener:
using Franz.Common.Messaging.RabbitMQ.Extensions;
using Franz.Common.Messaging.Hosting.RabbitMQ;
builder.Services.AddRabbitMQMessaging(builder.Configuration);
builder.Services.AddRabbitMQHostedListener(_ => { });
AddRabbitMQHostedListener accepts Action<MessagingOptions>. The callback configures the shared base options type; the current RabbitMQ listener consumes RabbitMQMessagingOptions, which are bound from Messaging:RabbitMQ by AddRabbitMQMessaging(configuration). Configure transport-specific concurrency, queue, replay, and provisioning settings in that RabbitMQ section rather than through the hosting callback.
The hosted service starts the listener in a BackgroundService, waits for listener completion, and stops it during host shutdown. When queue provisioning mode is Verify, the RabbitMQ initializer requires the Management HTTP API to inspect expected bindings; AMQP passive declarations cannot verify bindings.
Outbox listener
builder.Services.AddOutboxHostedListener(options =>
{
options.Enabled = true;
options.BatchSize = 100;
});
This registers the generic outbox listener and hosted service. Configure IMessageStore, IInboxStore, dispatcher, and serializer using the selected storage and messaging packages.
Tenant processing
Register Franz.Common.Messaging.MultiTenancy and enable RequireTenantScope when the consumer handles tenant-owned data. The tenant store and producer authorizer remain application responsibilities.
License
MIT. See the repository LICENSE.
| Product | Versions 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. |
-
net10.0
- Franz.Common.Hosting (>= 3.0.0)
- Franz.Common.Messaging (>= 3.0.0)
- Franz.Common.Messaging.Hosting (>= 3.0.0)
- Franz.Common.Messaging.MultiTenancy (>= 3.0.0)
- Franz.Common.Messaging.RabbitMQ (>= 3.0.0)
- RabbitMQ.Client (>= 7.2.1)
- SharpCompress (>= 0.50.7)
- Snappier (>= 1.3.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Franz.Common.Messaging.Hosting.RabbitMQ:
| Package | Downloads |
|---|---|
|
Franz.Common.Messaging.Hosting.Mediator
Shared utility library for the Franz Framework. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.0.0 | 0 | 11/10/2026 |
| 2.3.4 | 356 | 11/1/2026 |
| 2.3.3 | 325 | 10/28/2026 |
| 2.3.2 | 117 | 10/27/2026 |
| 2.3.1 | 179 | 10/26/2026 |
| 2.3.0 | 197 | 7/21/2026 |
| 2.2.19 | 150 | 7/19/2026 |
| 2.2.18 | 151 | 7/19/2026 |
| 2.2.17 | 152 | 7/12/2026 |
| 2.2.16 | 157 | 7/2/2026 |
| 2.2.15 | 158 | 6/29/2026 |
| 2.2.14 | 156 | 6/29/2026 |
| 2.2.13 | 159 | 6/29/2026 |
| 2.2.12 | 156 | 6/28/2026 |
| 2.2.11 | 174 | 6/28/2026 |
| 2.2.10 | 151 | 6/28/2026 |
| 2.2.9 | 157 | 6/28/2026 |
| 2.2.8 | 148 | 6/28/2026 |
| 2.2.7 | 155 | 6/7/2026 |
| 2.2.6 | 156 | 6/6/2026 |