Skip to content

IEventHubQueueCache.TryGetCursor(StreamId, StreamSequenceToken?)

TryGetCursor(StreamId, StreamSequenceToken?)

virtual
View source
public virtual QueueCacheCursorResult<object> TryGetCursor(StreamId streamId, StreamSequenceToken? sequenceToken)
Attempts to get a cursor into the cache to read events from a stream.

Parameters

streamIdStreamId
The stream identifier.
sequenceTokenStreamSequenceToken?
The position from which to begin reading.

Returns

A successful result containing the acquired cursor, or a cache-miss result containing the unavailable position and current cache bounds.