question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Determine EventData message size

See original GitHub issue

Actual 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:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:15 (8 by maintainers)

github_iconTop GitHub Comments

4reactions
serkantkaracacommented, Jan 24, 2018

Probably that one lost in the translation. I will mark this as a feature request. We can provide it in the near future.

1reaction
serkantkaracacommented, Oct 5, 2018

Sorry I didn’t have time to work on this feature request so far. This one will be part of next SDK release.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found