Skip to content

JournaledGrain<TGrainState, TEventBase>.ClearLogAsync(CancellationToken)

ClearLogAsync(CancellationToken)

View source
protected Task JournaledGrain<TGrainState, ClearLogAsync(CancellationToken cancellationToken = default(CancellationToken))
Clears the log of all confirmed events. Reset the state to the initial state, and discards all unconfirmed events. Throws System.NotSupportedException if the log cannot be cleared.

Parameters

cancellationTokenCancellationToken