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 newBinaryData
type. To preserve backwards compatibility, the existingEventData.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 theEventHubProducerClient
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.