CachedMessageBlock.TryFindFirstMessage 方法

定义

重载

TryFindFirstMessage(StreamId, ICacheDataAdapter, Int32)

尝试在块中查找属于所提供流的第一条消息。

TryFindFirstMessage(IStreamIdentity, ICacheDataAdapter, Int32)

尝试在块中查找属于所提供流的第一条消息。

TryFindFirstMessage(StreamId, ICacheDataAdapter, Int32)

尝试在块中查找属于所提供流的第一条消息。

public bool TryFindFirstMessage (Orleans.Runtime.StreamId streamId, Orleans.Providers.Streams.Common.ICacheDataAdapter dataAdapter, out int index);
member this.TryFindFirstMessage : Orleans.Runtime.StreamId * Orleans.Providers.Streams.Common.ICacheDataAdapter * int -> bool
Public Function TryFindFirstMessage (streamId As StreamId, dataAdapter As ICacheDataAdapter, ByRef index As Integer) As Boolean

参数

streamId
StreamId

流标识符。

dataAdapter
ICacheDataAdapter

数据适配器。

index
Int32

索引。

返回

true 如果找到消息,则为 ; false 否则为 。

适用于

TryFindFirstMessage(IStreamIdentity, ICacheDataAdapter, Int32)

Source:
CachedMessageBlock.cs

尝试在块中查找属于所提供流的第一条消息。

public bool TryFindFirstMessage (Orleans.Streams.IStreamIdentity streamIdentity, Orleans.Providers.Streams.Common.ICacheDataAdapter dataAdapter, out int index);
member this.TryFindFirstMessage : Orleans.Streams.IStreamIdentity * Orleans.Providers.Streams.Common.ICacheDataAdapter * int -> bool
Public Function TryFindFirstMessage (streamIdentity As IStreamIdentity, dataAdapter As ICacheDataAdapter, ByRef index As Integer) As Boolean

参数

streamIdentity
IStreamIdentity
dataAdapter
ICacheDataAdapter
index
Int32

返回

适用于