github Azure/azure-sdk-for-net Azure.Messaging.EventHubs_5.3.0

latest releases: Microsoft.Azure.WebJobs.Extensions.WebPubSubForSocketIO_1.0.0-beta.4, Azure.Maps.Search_2.0.0-beta.4, Azure.ResourceManager.ComputeSchedule_1.0.0-beta.1...
3 years ago

5.3.0 (2021-02-09)

Changes

New Features

  • Connection strings can now be parsed into their key/value pairs using the EventHubsConnectionStringProperties class.

  • The body of an event has been moved to the EventData.EventBody property and makes use of the new BinaryData type. To preserve backwards compatibility, the existing EventData.Body property has been preserved with the current semantics.

  • It is now possible to specify a custom endpoint to use for establishing the connection to the Event Hubs service in the EventHubConnectionOptions used by each of the clients.

  • Errors occurring in the Event Hubs service or active transport are now preserved in full and propagated as an inner exception; this will provide deeper context for diagnosing and troubleshooting exceptions.

  • The EventHubsModelFactory has been introduced to provide a single point for creation of Event Hubs model types to assist with mocking and testing.

  • Documentation used for auto-completion via Intellisense and other tools has been enhanced in many areas, addressing gaps and commonly asked questions.

Key Bug Fixes

  • Upgraded the Microsoft.Azure.Amqp library to resolve crashes occurring in .NET 5.

  • The EventHubsException.ToString result will now properly follow the format of other .NET exception output.

  • Signaling the cancellation token will no longer cause the SendAsync method of the EventHubProducerClient to ignore the result of the service operation if publishing has already completed.

  • The calculation for authorization token expiration has been fixed, resulting in fewer token refreshes and network requests.

Don't miss a new azure-sdk-for-net release

NewReleases is sending notifications on new releases.