2.0.0
Microsoft.Azure.EventHubs
Breaking changes
- Introducing EventPosition class to declare position information while creating a receiver. PartitionReceiver.StartOfStream and PartitionReceiver.EndOfStream are removed.
- IPartitionReceiveHandler introduces MaxBatchSize which needs to be implemented as part of the interface.
Bug fixes
- EventDataBatch with partition-key batch size calculation related issues are fixed. (#198)
- EventData.SystemProperties to inherit System.Dictionary. This helps to avoid overriding event properties when send through IOT endpoints. (#206)
- Fixed a receive stuck issue with receive handlers when the batch size was not provided by implementing client. We set the batch size as 10 with this fix. (#235)
Features/Enhancements
- Receiver identifier. This adds an identifier aka. name to a receiver. The receiver names are used to enhance client side exception messages for debugging purpose. (#226)
- Start from a sequence number. Clients are now able to start receiving from a given sequence number with this new API. (#230)
- Receive handler provides invokeWhenNoEvents flag to control null receive behavior. When set, receive handler callback is invoked on receive timeouts as well. (#238)
- PartitionContext provides a CancellationTokenSource which can be used to stop long running event processes, (#187)
Microsoft.Azure.EventHubs.Processor
Bug fixes
- EventHubsConnectionStringBuilder crashes when shared access signature is provided. (#219)
Here are the corresponding NuGet packages:
https://www.nuget.org/packages/Microsoft.Azure.EventHubs/2.0.0
https://www.nuget.org/packages/Microsoft.Azure.EventHubs.Processor/2.0.0