![]() |
VOOZH | about |
dotnet add package Franz.Common.Messaging.Hosting.RabbitMQ --version 2.2.7
NuGet\Install-Package Franz.Common.Messaging.Hosting.RabbitMQ -Version 2.2.7
<PackageReference Include="Franz.Common.Messaging.Hosting.RabbitMQ" Version="2.2.7" />
<PackageVersion Include="Franz.Common.Messaging.Hosting.RabbitMQ" Version="2.2.7" />Directory.Packages.props
<PackageReference Include="Franz.Common.Messaging.Hosting.RabbitMQ" />Project file
paket add Franz.Common.Messaging.Hosting.RabbitMQ --version 2.2.7
#r "nuget: Franz.Common.Messaging.Hosting.RabbitMQ, 2.2.7"
#:package Franz.Common.Messaging.Hosting.RabbitMQ@2.2.7
#addin nuget:?package=Franz.Common.Messaging.Hosting.RabbitMQ&version=2.2.7Install as a Cake Addin
#tool nuget:?package=Franz.Common.Messaging.Hosting.RabbitMQ&version=2.2.7Install as a Cake Tool
A dedicated hosting library within the Franz Framework that provides RabbitMQ-specific hosted services and dependency injection extensions.
This package bridges the RabbitMQ transport layer (Franz.Common.Messaging.RabbitMQ) with the .NET hosting infrastructure (Microsoft.Extensions.Hosting).
Hosted Services
RabbitMQHostedService – continuously consumes RabbitMQ messages and dispatches them.OutboxHostedService – publishes stored outbox messages to RabbitMQ in the background.MessagingHostedService – general-purpose hosted message orchestrator.Dependency Injection Extensions
RabbitMQHostingServiceCollectionExtensions simplifies service registration in Startup/Program.cs.AddRabbitMQHostedListener() and AddOutboxHostedListener().Separation of Concerns
Franz.Common.Messaging.RabbitMQ) separate from hosting concerns.Observability
Franz.Common.Messaging.Hosting.RabbitMQ/
├── Extensions/
│ └── RabbitMQHostingServiceCollectionExtensions.cs
├── HostedServices/
│ ├── RabbitMQHostedService.cs
│ ├── MessagingHostedService.cs
│ └── OutboxHostedService.cs
└── readme.md
In Program.cs or Startup.cs:
using Franz.Common.Messaging.Hosting.RabbitMQ.Extensions;
var host = Host.CreateDefaultBuilder(args)
.ConfigureServices((context, services) =>
{
services.AddRabbitMQHostedListener(opts =>
{
opts.ConnectionString = context.Configuration["RabbitMQ:ConnectionString"];
opts.ExchangeName = context.Configuration["RabbitMQ:ExchangeName"];
});
services.AddOutboxHostedListener(opts =>
{
opts.OutboxTable = context.Configuration["Outbox:TableName"];
});
})
.Build();
await host.RunAsync();
Runs in the background to consume RabbitMQ messages and dispatch them via the mediator:
public class RabbitMQHostedService : BackgroundService
{
protected override async Task ExecuteAsync(CancellationToken stoppingToken)
{
// Consumes RabbitMQ messages and dispatches
}
}
Ensures pending messages in MongoDB/SQL outbox are published to RabbitMQ reliably:
public class OutboxHostedService : BackgroundService
{
protected override async Task ExecuteAsync(CancellationToken stoppingToken)
{
// Reads outbox, sends to RabbitMQ, handles retries/DLQ
}
}
MessageContextAccessor for correlation IDs.This library is licensed under the MIT License. See the LICENSE file for details.
RabbitMQHostedService to run RabbitMQ listeners inside .NET host.OutboxHostedService to bridge Mongo/SQL outbox with RabbitMQ publishing.RabbitMQHostingServiceCollectionExtensions for simple DI registration.MessageContextAccessor and inbox idempotency support.| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
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. |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.2.7 | 113 | 6/7/2026 |
| 2.2.6 | 119 | 6/6/2026 |
| 2.2.5 | 120 | 6/4/2026 |
| 2.2.4 | 107 | 6/3/2026 |
| 2.2.3 | 114 | 6/2/2026 |
| 2.2.2 | 128 | 6/2/2026 |
| 2.2.1 | 113 | 5/24/2026 |
| 2.1.4 | 121 | 4/27/2026 |
| 2.1.3 | 110 | 4/26/2026 |
| 2.1.2 | 113 | 4/26/2026 |
| 2.1.1 | 121 | 4/22/2026 |
| 2.0.2 | 131 | 3/30/2026 |
| 2.0.1 | 125 | 3/29/2026 |
| 1.7.8 | 132 | 3/2/2026 |
| 1.7.7 | 138 | 1/31/2026 |
| 1.7.6 | 133 | 1/22/2026 |
| 1.7.5 | 139 | 1/10/2026 |
| 1.7.4 | 133 | 12/27/2025 |
| 1.7.3 | 207 | 12/22/2025 |
| 1.7.2 | 213 | 12/21/2025 |