Skip to content

EventHubSequenceToken Constructors

Event Hub messages consist of a batch of application layer events, so EventHub tokens contain three pieces of information. EventHubOffset - this is a unique value per partition that is used to start reading from this message in the partition. SequenceNumber - EventHub sequence numbers are unique ordered message IDs for messages within a partition. The SequenceNumber is required for uniqueness and ordering of EventHub messages within a partition. event Index - Since each EventHub message may contain more than one application layer event, this value indicates which application layer event this token is for, within an EventHub message. It is required for uniqueness and ordering of application layer events within an EventHub message.

EventHubSequenceToken(string, long, int)

View source
public EventHubSequenceToken(string eventHubOffset, long sequenceNumber, int eventIndex)
Initializes a new instance of the EventHubSequenceToken class.

Parameters

eventHubOffsetstring
EventHub offset within the partition from which this message came.
sequenceNumberlong
EventHub sequenceNumber for this message.
eventIndexint
Index into a batch of events, if multiple events were delivered within a single EventHub message.