Skip to content

EventHubDataAdapter.EncodeMessageIntoSegment(EventData, Func<int, ArraySegment<byte>>)

EncodeMessageIntoSegment(EventData, Func<int, ArraySegment<byte>>)

virtual
View source
protected virtual ArraySegment<byte> EncodeMessageIntoSegment(EventData queueMessage, Func<int, ArraySegment<byte>> getSegment)
Encodes an Event Hub message into a cache segment.

Parameters

queueMessageEventData
The Event Hub message.
getSegmentFunc<int, ArraySegment<byte>>
The delegate used to allocate a cache segment of the required size.

Returns

The segment containing the encoded message.