Skip to content

NamedTransactionalStateStorageFactory Methods

Creates transactional state storage using named transactional storage factories or grain storage providers.

Create(string?, string)

View source
public ITransactionalStateStorage<TState> Create<TState>(string? storageName, string stateName)
Create an ITransactionalStateStorage by name.

Parameters

storageNamestring?
Name of transaction state storage to create.
stateNamestring
Name of transaction state.

Returns

The transactional state storage.

Exceptions

System.InvalidOperationException
No transactional state storage factory or grain storage provider is configured with the requested name.