Azure.Messaging.EventHubs 5.1.0-preview.1 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.
Install-Package Azure.Messaging.EventHubs -Version 5.1.0-preview.1
dotnet add package Azure.Messaging.EventHubs --version 5.1.0-preview.1
<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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Azure.Messaging.EventHubs, 5.1.0-preview.1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. 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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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

NuGet packages (28)

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

Package Downloads

Microsoft Azure WebJobs SDK EventHubs Extension


HealthChecks.AzureServiceBus is the health check package for Azure EventHub, and Azure Service Bus Queues and Topics.


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


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

GitHub repositories (10)

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

Repository Stars
Orleans is a cross-platform framework for building distributed applications with .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
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.
Asp.Net Core 5 Clean Architecture (Microservices, Modular Monolith, Monolith) samples (+Blazor, Angular 12, React 17, Vue 2.6), Domain-Driven Design, CQRS, Event Sourcing, SOLID, Asp.Net Core Identity Custom Storage, Identity Server 4 Admin UI, Entity Framework Core, Selenium E2E Testing, SignalR, Hosted Services, Health Checks, Security Headers, ...
Version Downloads Last updated
5.6.1 8,245 9/8/2021
5.6.0 62,476 8/10/2021
5.5.0 117,715 7/7/2021
5.5.0-beta.1 532 6/8/2021
5.4.1 211,753 5/11/2021
5.4.0 169,072 4/5/2021
5.4.0-beta.1 923 3/17/2021
5.3.1 309,274 3/9/2021
5.3.0 142,997 2/9/2021
5.3.0-beta.4 28,926 11/10/2020
5.3.0-beta.3 5,873 9/30/2020
5.3.0-beta.1 2,137 9/15/2020
5.2.0 708,821 9/8/2020
5.2.0-preview.3 3,300 8/18/2020
5.2.0-preview.1 5,631 7/6/2020
5.1.0 531,325 5/5/2020
5.1.0-preview.1 1,064 4/6/2020
5.0.1 229,759 1/29/2020
5.0.0-preview.6 17,529 12/3/2019
5.0.0-preview.5 4,177 11/1/2019
5.0.0-preview.4 2,024 10/8/2019
5.0.0-preview.3 780 9/10/2019
5.0.0-preview.2 1,530 8/6/2019
5.0.0-preview.1 1,404 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](