Skip to content

CachedMessageExtensions Methods

Extensions for CachedMessage.

Compare(CachedMessage, StreamSequenceToken)

staticextension
View source
public static int Compare(this ref CachedMessage cachedMessage, StreamSequenceToken token)
Compares the specified cached message.

Parameters

cachedMessageCachedMessage
The cached message.
tokenStreamSequenceToken
The token.

Returns

A value indicating the relative order of the token to the cached message.

CompareStreamId(CachedMessage, StreamId)

staticextension
View source
public static bool CompareStreamId(this ref CachedMessage cachedMessage, StreamId streamId)
Compares the stream identifier of a cached message.

Parameters

cachedMessageCachedMessage
The cached message.
streamIdStreamId
The stream identifier.

Returns

true if streamId is equal to the CachedMessage value; otherwise false.