Skip to content

DynamoDBTransactionalStateStorageFactory Methods

Creates DynamoDB-backed transactional state storage instances.

Create(string, IGrainContext)

View source
public ITransactionalStateStorage<TState> Create<TState>(string stateName, IGrainContext context)
Creates storage for the specified transactional state.

Parameters

stateNamestring
The transactional state name.
contextIGrainContext
The grain context which owns the state.

Returns

The transactional state storage instance.

Create(IServiceProvider, string)

static
View source
public static ITransactionalStateStorageFactory Create(IServiceProvider services, string name)
Creates a transactional state storage factory.

Parameters

servicesIServiceProvider
The service provider.
namestring
The provider name.

Returns

The transactional state storage factory.

Participate(ISiloLifecycle)

View source
public void Participate(ISiloLifecycle lifecycle)
Adds the provided observer as a participant in the lifecycle.

Parameters

lifecycleISiloLifecycle
The observer.