Skip to content

EventHubQueueCache Methods

EventHub queue cache

Add(List<EventData>, DateTime)

View source
public List<StreamPosition> Add(List<EventData> messages, DateTime dequeueTimeUtc)
Add a list of EventHub EventData to the cache.

Parameters

messagesList<EventData>
dequeueTimeUtcDateTime

Dispose

View source
public void Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Refresh(object, StreamSequenceToken)

View source
public void Refresh(object cursor, StreamSequenceToken sequenceToken)
Refreshes an inactive cursor at the provided sequence token.

Parameters

cursorobject
The cursor to refresh.
sequenceTokenStreamSequenceToken
The sequence token to position the cursor at.

SignalPurge

View source
public void SignalPurge()
Send purge signal to the cache, the cache will perform a time based purge on its cached messages