Skip to content

JournaledGrain<TGrainState, TEventBase> Methods

A base class for log-consistent grains using standard event-sourcing terminology. All operations are reentrancy-safe.

OnActivateAsync(CancellationToken)

override
View source
public override Task JournaledGrain<TGrainState, OnActivateAsync(CancellationToken cancellationToken)
By default, upon activation, the journaled grain waits until it has loaded the latest view from storage. Subclasses can override this behavior, and skip the wait if desired.

Parameters

cancellationTokenCancellationToken