How can the serialized size of EventData be determined for batching?
问题 In the documentation for the Azure EventHubClient there are two methods for sending a batch of data each of them has the remark below and will throw a MessageSizeExceededException if it is ignored. You should ensure that the total serialized size of eventDataList is less than the size limit of one event data transmission, which is 256k by default. A similar warning is present in the Programming Guide How can the serialized size of IEnumerable<EventData> eventDataList be determined? The size