DurableGrain
class
Namespace: Orleans.Journaling
Provides a base class for grains which manage journaled durable state.
public abstract class DurableGrain : Grain, IGrainBaseConstructors
DurableGrainInitializes a new instance of theDurableGrainclass and associates its state manager with the grain lifecycle.
Properties
StateManagerGets the journaled state manager for this grain activation.
Methods
GetOrCreateState(string, Func<TArg, TState>, TArg)Gets the registered state with the specified name or creates it using the supplied factory and argument.GetOrCreateState(string)Gets the registered state with the specified name or creates it using the grain service provider.WriteStateAsync(CancellationToken)Writes the registered journaled state.
