Skip to content

JournaledGrain<TGrainState, TEventBase>.ConfirmEvents

ConfirmEvents

View source
protected Task JournaledGrain<TGrainState, ConfirmEvents()
Waits until all previously raised events have been confirmed.

await this after raising one or more events, to ensure events are persisted before proceeding, or to guarantee strong consistency (linearizability) even if there are multiple instances of this grain

Returns

a task that completes once the events have been confirmed.