Azure.Messaging.EventHubs 5.1.0

The ID prefix of this package has been reserved for one of the owners of this package by Prefix Reserved
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
NuGet\Install-Package Azure.Messaging.EventHubs -Version 5.1.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="Azure.Messaging.EventHubs" Version="5.1.0" />
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
#r "nuget: Azure.Messaging.EventHubs, 5.1.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.
// Install Azure.Messaging.EventHubs as a Cake Addin
#addin nuget:?package=Azure.Messaging.EventHubs&version=5.1.0

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

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](
- Daniel Marbach _([GitHub]((
### Changes
#### General availability of preview features
- The set of features from v5.1.0-preview.1 are now generally available.  This includes the `EventProcessor<TPartition>` and `PartitionReceiver` types which focus on advanced application scenarios which require greater low-level control.
#### Publishing events
- A set of events may now be published without an explicit batch; a batched approach will be used when communicating with the Event Hubs service, with an implicit batch created on the sender's behalf.
#### Bug fixes and foundation
- The transport producers used for sending events to a specific partition are now managed by a pool with sliding expiration to enable more efficient resource use and cleanup.  _(A community contribution, courtesy of ([albertodenatale](
- Timing operations have been refactored to make use of a more efficient approach with fewer allocations.  (A community contribution, courtesy of _([danielmarbach](
- Fixed a bug with EventDataBatch; it is now thread-safe.
- Minor enhancements to reduce allocations and improve efficiency