Determine EventData message size
See original GitHub issueActual Behavior
Unable to determine the message size of a serialized EventData
instance. I noticed this missing property while looking at the following StackOverflow question. There was a change related to batch sizes on Azure/azure-event-hubs-dotnet#79, but this issue is about a single EventData
instance.
Expected Behavior
The old SDK has the property SerializedSizeInBytes
(MSDN). Would like to have the same property available here.
Versions
- OS platform and version: Windows
- .NET Version: 4.7
- NuGet package version or commit ID: 1.1.0
If you’re open for contributions I’d love to take a look.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:15 (8 by maintainers)
Top Results From Across the Web
How can the serialized size of EventData be determined for ...
The size of the bytes passed to each EventData is easy enough to determine, assuming you don't ask the EventData. However, the serialized...
Read more >EventDataBatch.TryAdd(EventData) Method
This method checks the sizes of the batch, the EventData object and the specified limit to determine if the EventData object can be...
Read more >EventDataBatch interface
Size of the batch in bytes after the events added to it have been encoded into a single AMQP message. Methods. tryAdd(EventData |...
Read more >Connecting to Eventhubs
Consumer buffer size: When the consumer reads a message from event hubs, it appends them to a shared producer-consumer buffer corresponding to its...
Read more >Microsoft.Azure.EventHubs.xml
This method checks the sizes of the batch, the EventData object and the specified limit to determine if the EventData object can be...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Probably that one lost in the translation. I will mark this as a feature request. We can provide it in the near future.
Sorry I didn’t have time to work on this feature request so far. This one will be part of next SDK release.