共用方式為


CachedMessageBlock<TCachedMessage>.GetIndexOfFirstMessageLessThanOrEqualTo 方法

定義

取得此區塊中第一個訊息的索引,該訊息在提供的權杖之前或之前具有序列權杖

public int GetIndexOfFirstMessageLessThanOrEqualTo (Orleans.Streams.StreamSequenceToken token, Orleans.Providers.Streams.Common.ICacheDataComparer<TCachedMessage> comparer);
member this.GetIndexOfFirstMessageLessThanOrEqualTo : Orleans.Streams.StreamSequenceToken * Orleans.Providers.Streams.Common.ICacheDataComparer<'CachedMessage (requires 'CachedMessage : struct)> -> int
Public Function GetIndexOfFirstMessageLessThanOrEqualTo (token As StreamSequenceToken, comparer As ICacheDataComparer(Of TCachedMessage)) As Integer

參數

傳回

適用於