JournaledGrain<TGrainState,TEventBase>.RetrieveConfirmedEvents Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
a task which returns the sequence of events between the two versions