Skip to content

IPersistentStateFactory Methods

Factory for constructing Orleans.Runtime.IPersistentState instances for a grain.

Create(IGrainContext, IPersistentStateConfiguration)

abstract
public abstract IPersistentState<TState> Create<TState>(IGrainContext context, IPersistentStateConfiguration config)
Creates a persistent state instance for the provided grain.

Parameters

contextIGrainContext
The grain context.
configIPersistentStateConfiguration
The state facet configuration.

Returns

A persistent state instance for the provided grain with the specified configuration.