Skip to content

IQueueCache.TryGetCacheCursor(StreamId, StreamSequenceToken?)

TryGetCacheCursor(StreamId, StreamSequenceToken?)

virtual
View source
public virtual QueueCacheCursorResult<IQueueCacheCursor> TryGetCacheCursor(StreamId streamId, StreamSequenceToken? token)
Attempts to acquire a stream message cursor at the location indicated by the provided token.

Parameters

streamIdStreamId
The stream identifier.
tokenStreamSequenceToken?
The token.

Returns

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