Skip to content

JournaledGrain<TGrainState, TEventBase>.RetrieveConfirmedEvents(int, int)

RetrieveConfirmedEvents(int, int)

View source
protected Task<IReadOnlyList<TEventBase>> JournaledGrain<TGrainState, RetrieveConfirmedEvents(int fromVersion, int toVersion)
Retrieves a segment of the confirmed event sequence, possibly from storage. Throws System.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.

Parameters

fromVersionint
the position of the event sequence from which to start
toVersionint
the position of the event sequence on which to end

Returns

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