Azure.Messaging.EventHubs 5.1.0-preview.1

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

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.

Release Notes

### 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](

NuGet packages (4)

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

Package Downloads
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
Package Description
A simple SDK to interact with the Validic Streaming Service, parse data, and publish events to a separate data store.
Azure EventHubs transport for FBus.

GitHub repositories (5)

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
Distributed 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
Prescriptive Architecture Guidance for Cloud Applications
Provides a set of easy-to-understand samples for using Azure IoT Hub and Azure IoT Hub Device Provisioning Service and Azure IoT Plug and Play using C# SDK.

Version History

Version Downloads Last updated
5.3.0-beta.4 1,551 11/10/2020
5.3.0-beta.3 2,229 9/30/2020
5.3.0-beta.1 1,849 9/15/2020
5.2.0 87,291 9/8/2020
5.2.0-preview.3 2,979 8/18/2020
5.2.0-preview.1 5,308 7/6/2020
5.1.0 278,124 5/5/2020
5.1.0-preview.1 979 4/6/2020
5.0.1 160,459 1/29/2020
5.0.0-preview.6 17,403 12/3/2019
5.0.0-preview.5 4,096 11/1/2019
5.0.0-preview.4 1,731 10/8/2019
5.0.0-preview.3 676 9/10/2019
5.0.0-preview.2 1,284 8/6/2019
5.0.0-preview.1 1,153 7/1/2019
Show less