JournaledGrain<TGrainState,TEventBase>.RefreshNow Method

Definition

Retrieves the latest state now, and confirms all previously raised events. Effectively, this enforces synchronization with the global state.

Await this before reading the state to ensure strong consistency (linearizability) even if there are multiple instances of this grain

protected System.Threading.Tasks.Task RefreshNow ();
member this.RefreshNow : unit -> System.Threading.Tasks.Task
Protected Function RefreshNow () As Task

Returns

a task that completes once the log has been refreshed and the events have been confirmed.

Applies to