Redigera

Dela via


JournaledGrain<TGrainState,TEventBase>.RetrieveConfirmedEvents Method

Definition

Retrieves a segment of the confirmed event sequence, possibly from storage. Throws NotSupportedException if the events are not available to read. Whether events are available, and for how long, depends on the providers used and how they are configured.

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))

Parameters

fromVersion
Int32

the position of the event sequence from which to start

toVersion
Int32

the position of the event sequence on which to end

Returns

Task<IReadOnlyList<TEventBase>>

a task which returns the sequence of events between the two versions

Applies to