Skip to content

EventHubQueueCache.TryGetNextMessageWithResult(object, IBatchContainer?)

TryGetNextMessageWithResult(object, IBatchContainer?)

View source
public QueueCacheCursorMoveResult TryGetNextMessageWithResult(object cursorObj, out IBatchContainer? message)
Attempts to get the next message in the cache for the provided cursor.

Parameters

cursorObjobject
The cache cursor.
messageIBatchContainer?
The next message when one is available.

Returns

A successful result with a non-null message, QueueCacheCursorMoveResultKind with a null message, or a cache-miss result with a null message.