CacheDataComparerExtensions.Compare<TCachedMessage> 方法

定义

将缓存的消息与序列标记进行比较,以确定消息是否在令牌之前或之后

public static int Compare<TCachedMessage> (this Orleans.Providers.Streams.Common.ICacheDataComparer<TCachedMessage> comparer, Orleans.Streams.StreamSequenceToken streamToken, TCachedMessage cachedMessage);
static member Compare : Orleans.Providers.Streams.Common.ICacheDataComparer<'CachedMessage> * Orleans.Streams.StreamSequenceToken * 'CachedMessage -> int
<Extension()>
Public Function Compare(Of TCachedMessage) (comparer As ICacheDataComparer(Of TCachedMessage), streamToken As StreamSequenceToken, cachedMessage As TCachedMessage) As Integer

类型参数

TCachedMessage

参数

streamToken
StreamSequenceToken
cachedMessage
TCachedMessage

返回

适用于