Skip to content

CachedMessageBlock.GetIndexOfFirstMessageLessThanOrEqualTo(StreamSequenceToken)

GetIndexOfFirstMessageLessThanOrEqualTo(StreamSequenceToken)

View source
public int GetIndexOfFirstMessageLessThanOrEqualTo(StreamSequenceToken token)
Gets the index of the first message in this block that has a sequence token at or before the provided token

Parameters

tokenStreamSequenceToken
The sequence token.

Returns

The index of the first message in this block that has a sequence token equal to or before the provided token.