Franz.Common.Messaging.AzureEventHubs
3.0.0
dotnet add package Franz.Common.Messaging.AzureEventHubs --version 3.0.0
NuGet\Install-Package Franz.Common.Messaging.AzureEventHubs -Version 3.0.0
<PackageReference Include="Franz.Common.Messaging.AzureEventHubs" Version="3.0.0" />
<PackageVersion Include="Franz.Common.Messaging.AzureEventHubs" Version="3.0.0" />
<PackageReference Include="Franz.Common.Messaging.AzureEventHubs" />
paket add Franz.Common.Messaging.AzureEventHubs --version 3.0.0
#r "nuget: Franz.Common.Messaging.AzureEventHubs, 3.0.0"
#:package Franz.Common.Messaging.AzureEventHubs@3.0.0
#addin nuget:?package=Franz.Common.Messaging.AzureEventHubs&version=3.0.0
#tool nuget:?package=Franz.Common.Messaging.AzureEventHubs&version=3.0.0
Franz.Common.Messaging.AzureEventHubs
Azure Event Hubs producer and checkpointed processor integration for Franz messages.
Overview
This package configures Event Hubs clients, a checkpoint store, producer/processor infrastructure, serialization, and message mapping. The Azure hosting package supplies the hosted-service wrapper.
Installation
dotnet add package Franz.Common.Messaging.AzureEventHubs
Registration
using Franz.Common.Messaging.AzureEventHubs.DependencyInjection;
builder.Services.AddFranzAzureEventHubs(options =>
{
options.ConnectionString = builder.Configuration["EventHubs:ConnectionString"]!;
options.EventHubName = "orders";
options.ConsumerGroup = "$Default";
options.BlobConnectionString = builder.Configuration["EventHubs:BlobConnectionString"]!;
options.BlobContainerName = "eventhub-checkpoints";
options.MaxBatchSize = 100;
});
The extension validates required connection, hub, checkpoint-storage, and batch-size settings, then registers the Event Hubs client/processor factories, serializer, mapper, producer, and processor.
Hosted execution
AddFranzAzureEventHubs registers transport infrastructure but does not register the hosted processor. Use Franz.Common.Messaging.Hosting.Azure when the host needs the Event Hubs hosted service. Configure the processor's checkpoint storage with an appropriately secured Blob Storage account and container.
DI lifetime limitation
The current registration creates AzureEventHubsProcessor as a singleton and injects IDispatcher, which Franz Mediator registers as scoped. With DI scope validation enabled, resolving the processor fails; with validation disabled, it captures a root-scoped dispatcher. Although the processor creates a per-event scope, it resolves the scoped dispatcher from that scope only when ITenantMessageContextInitializer is registered. Do not treat this processor registration as production-safe until dispatch always resolves from the per-event scope.
Tenant-aware processing
When the processor is hosted with a DI scope factory and ITenantMessageContextInitializer is registered, each event is dispatched under validated tenant execution context. Register the messaging multi-tenancy package and application-owned tenant store/producer authorizer as required. The processor advances the partition checkpoint only after dispatch succeeds; a dispatch exception leaves the event uncheckpointed for redelivery.
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
- Azure.Messaging.EventHubs (>= 5.12.2)
- Azure.Messaging.EventHubs.Processor (>= 5.12.2)
- Azure.Storage.Blobs (>= 12.29.1)
- Franz.Common.Errors (>= 3.0.0)
- Franz.Common.Headers (>= 3.0.0)
- Franz.Common.Logging (>= 3.0.0)
- Franz.Common.Mapping (>= 3.0.0)
- Franz.Common.Mediator (>= 3.0.0)
- Franz.Common.Messaging (>= 3.0.0)
- Franz.Common.Messaging.MultiTenancy (>= 3.0.0)
- Franz.Common.Serialization (>= 3.0.0)
- SharpCompress (>= 0.50.7)
- Snappier (>= 1.3.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Franz.Common.Messaging.AzureEventHubs:
| Package | Downloads |
|---|---|
|
Franz.Common.Messaging.Hosting.Azure
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 | 343 | 11/1/2026 |
| 2.3.3 | 106 | 10/28/2026 |
| 2.3.2 | 110 | 10/27/2026 |
| 2.3.1 | 107 | 10/26/2026 |
| 2.3.0 | 159 | 7/21/2026 |
| 2.2.19 | 142 | 7/19/2026 |
| 2.2.18 | 137 | 7/19/2026 |
| 2.2.17 | 141 | 7/12/2026 |
| 2.2.16 | 144 | 7/2/2026 |
| 2.2.15 | 153 | 6/29/2026 |
| 2.2.14 | 146 | 6/29/2026 |
| 2.2.13 | 141 | 6/29/2026 |
| 2.2.12 | 142 | 6/28/2026 |
| 2.2.11 | 149 | 6/28/2026 |
| 2.2.10 | 153 | 6/28/2026 |
| 2.2.9 | 154 | 6/28/2026 |
| 2.2.8 | 145 | 6/28/2026 |
| 2.2.7 | 153 | 6/7/2026 |
| 2.2.6 | 145 | 6/6/2026 |