IStreamGenerator.TryReadEvents 方法

定义

重载

TryReadEvents(DateTime, List<IBatchContainer>)

如果生成器配置为此时生成任何事件,则尝试获取事件

TryReadEvents(DateTime, Int32, List<IBatchContainer>)

如果生成器配置为此时生成任何事件,则尝试获取事件

TryReadEvents(DateTime, List<IBatchContainer>)

如果生成器配置为此时生成任何事件,则尝试获取事件

public bool TryReadEvents (DateTime utcNow, out System.Collections.Generic.List<Orleans.Streams.IBatchContainer> events);
abstract member TryReadEvents : DateTime * List -> bool
Public Function TryReadEvents (utcNow As DateTime, ByRef events As List(Of IBatchContainer)) As Boolean

参数

utcNow
DateTime

返回

适用于

TryReadEvents(DateTime, Int32, List<IBatchContainer>)

Source:
IStreamGenerator.cs

如果生成器配置为此时生成任何事件,则尝试获取事件

public bool TryReadEvents (DateTime utcNow, int maxCount, out System.Collections.Generic.List<Orleans.Streams.IBatchContainer> events);
abstract member TryReadEvents : DateTime * int * List -> bool
Public Function TryReadEvents (utcNow As DateTime, maxCount As Integer, ByRef events As List(Of IBatchContainer)) As Boolean

参数

utcNow
DateTime

当前 UTC 时间。

maxCount
Int32

要读取的最大事件数。

events
List<IBatchContainer>

事件。

返回

true 如果已读取事件,则为 ; false 否则为 。

适用于