Azure.Messaging.EventHubs 5.1.0-preview.1

The ID prefix of this package has been reserved for one of the owners of this package by Prefix Reserved
This is a prerelease version of Azure.Messaging.EventHubs.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Azure.Messaging.EventHubs --version 5.1.0-preview.1
NuGet\Install-Package Azure.Messaging.EventHubs -Version 5.1.0-preview.1
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="Azure.Messaging.EventHubs" Version="5.1.0-preview.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Azure.Messaging.EventHubs --version 5.1.0-preview.1
#r "nuget: Azure.Messaging.EventHubs, 5.1.0-preview.1"
#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.
// Install Azure.Messaging.EventHubs as a Cake Addin
#addin nuget:?package=Azure.Messaging.EventHubs&version=5.1.0-preview.1&prerelease

// Install Azure.Messaging.EventHubs as a Cake Tool
#tool nuget:?package=Azure.Messaging.EventHubs&version=5.1.0-preview.1&prerelease

Azure Event Hubs is a highly scalable publish-subscribe service that can ingest millions of events per second and stream them to multiple consumers.  This client library allows for both publishing and consuming events using Azure Event Hubs. For more information about Event Hubs, see

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (63)

Showing the top 5 NuGet packages that depend on Azure.Messaging.EventHubs:

Package Downloads
Microsoft.Azure.WebJobs.Extensions.EventHubs The ID prefix of this package has been reserved for one of the owners of this package by

Microsoft Azure WebJobs SDK EventHubs Extension

Azure.Messaging.EventHubs.Processor The ID prefix of this package has been reserved for one of the owners of this package by

Azure Event Hubs is a highly scalable publish-subscribe service that can ingest millions of events per second and stream them to multiple consumers. This library extends its Event Processor with durable storage for checkpoint information using Azure Blob storage. For more information about Event Hubs, see


Write Serilog events to Azure Event Hub

Microsoft.Azure.Functions.Worker.Extensions.EventHubs The ID prefix of this package has been reserved for one of the owners of this package by

Azure Event Hubs extensions for .NET isolated functions

Microsoft.Diagnostics.EventFlow.Outputs.EventHub The ID prefix of this package has been reserved for one of the owners of this package by

Provides an output implementation that sends diagnostics data to Azure Event Hubs.

GitHub repositories (20)

Showing the top 5 popular GitHub repositories that depend on Azure.Messaging.EventHubs:

Repository Stars
Cloud Native application framework for .NET
This repository is for active development of the Azure SDK for .NET. For consumers of the SDK we recommend visiting our public developer docs at or our versioned developer docs at
Enterprise HealthChecks for ASP.NET Core Diagnostics Package
Sample code referenced by the .NET documentation
The Service Bus Explorer allows users to connect to a Service Bus namespace and administer messaging entities in an easy manner. The tool provides advanced features like import/export functionality or the ability to test topic, queues, subscriptions, relay services, notification hubs and events hubs.
Version Downloads Last updated
5.11.0 46,510 2/13/2024
5.10.0 733,140 11/8/2023
5.9.3 731,389 9/12/2023
5.9.2 2,091,151 6/6/2023
5.9.1 381,750 5/9/2023
5.9.0 665,651 4/11/2023
5.8.1 408,673 3/10/2023
5.8.0 41,843 3/7/2023
5.7.5 1,988,731 11/22/2022
5.7.4 2,623,014 11/8/2022
5.7.3 619,498 10/11/2022
5.7.2 1,863,119 8/9/2022
5.7.1 1,940,595 7/7/2022
5.7.0 1,737,204 5/10/2022
5.7.0-beta.5 10,099 4/5/2022
5.7.0-beta.4 8,032 3/11/2022
5.7.0-beta.3 10,735 2/9/2022
5.7.0-beta.2 11,126 1/13/2022
5.7.0-beta.1 12,919 11/9/2021
5.6.2 6,501,653 10/5/2021
5.6.1 866,178 9/8/2021
5.6.0 376,109 8/10/2021
5.5.0 692,338 7/7/2021
5.5.0-beta.1 1,303 6/8/2021
5.4.1 1,533,624 5/11/2021
5.4.0 506,573 4/5/2021
5.4.0-beta.1 1,217 3/17/2021
5.3.1 1,769,323 3/9/2021
5.3.0 354,953 2/9/2021
5.3.0-beta.4 195,298 11/10/2020
5.3.0-beta.3 7,275 9/30/2020
5.3.0-beta.1 2,434 9/15/2020
5.2.0 1,908,899 9/8/2020
5.2.0-preview.3 5,181 8/18/2020
5.2.0-preview.1 5,954 7/6/2020
5.1.0 791,660 5/5/2020
5.1.0-preview.1 1,237 4/6/2020
5.0.1 335,884 1/29/2020
5.0.0-preview.6 20,907 12/3/2019
5.0.0-preview.5 4,477 11/1/2019
5.0.0-preview.4 2,745 10/8/2019
5.0.0-preview.3 1,071 9/10/2019
5.0.0-preview.2 1,753 8/6/2019
5.0.0-preview.1 1,974 7/1/2019

### Acknowledgments
Thank you to our developer community members who helped to make the Event Hubs client libraries better with their contributions to this release:
- Alberto De Natale _([GitHub](
- Christopher Scott _([GitHub](
#### Consuming events
- A new primitive, `EventProcessor<TPartition>`, has been implemented to serve as an extensibility point for creating a custom event processor instance.  It offers built-in fault tolerance, load balancing, and structure while allowing tuning for low-level network configuration, processing of events in batches, and customization for the storage of checkpoints.  More detail can be found in the [design proposal](
- A new primitive, `PartitionProcessor`, has been implemented to serve as a low-level means of reading batches of events from a single partition with greater control over network configuration.  More detail can be found in the [design proposal](
#### Publishing events
- Event batches are now protected against modification while publishing is actively taking place.
#### Bug fixes and foundation
- Exceptions surfaced will now properly remember their context in all scenarios; previously, some deferred cases unintentionally reset the context.
- Validation for the Event Hubs fully qualified namespace has been improved, allowing for more deterministic failures when creating clients.
- The diagnostic scope for activities will now complete in a more deterministic manner.  (A community contribution, courtesy of [christothes]((
- Diagnostic activities have been extended with additional information about events being processed and with additional environmental context.
- Parsing of connection strings is now more permissive for the `Endpoint` key, allowing additional formats that result from common mistakes when building the string rather than copying the value from the portal.
- `LastEnqueuedEventProperties` can now be compared for structural equality.
#### Testing
- For special cases, the live tests may be instructed to use existing Azure resources instead of dynamically creating dedicated resources for the run.  (A community contribution, courtesy of [albertodenatale](