JournaledGrain<TGrainState,TEventBase>.RetrieveConfirmedEvents 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
从存储中检索确认事件序列的段。 如果事件不可用于读取,则 NotSupportedException 引发。 事件是否可用以及事件的时间取决于使用的提供程序及其配置方式。
protected System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<TEventBase>> RetrieveConfirmedEvents (int fromVersion, int toVersion);
member this.RetrieveConfirmedEvents : int * int -> System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<'EventBase>>
Protected Function RetrieveConfirmedEvents (fromVersion As Integer, toVersion As Integer) As Task(Of IReadOnlyList(Of TEventBase))
参数
- fromVersion
- Int32
从中开始的事件序列的位置
- toVersion
- Int32
要结束的事件序列的位置
返回
Task<IReadOnlyList<TEventBase>>
一个任务,该任务返回两个版本之间的事件序列