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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Franz.Common.Messaging.AzureEventHubs" Version="3.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Franz.Common.Messaging.AzureEventHubs" Version="3.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Franz.Common.Messaging.AzureEventHubs" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Franz.Common.Messaging.AzureEventHubs --version 3.0.0
                    
#r "nuget: Franz.Common.Messaging.AzureEventHubs, 3.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Franz.Common.Messaging.AzureEventHubs@3.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Franz.Common.Messaging.AzureEventHubs&version=3.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Franz.Common.Messaging.AzureEventHubs&version=3.0.0
                    
Install as a Cake Tool

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
Loading failed