Skip to content

NamedTransactionalStateStorageFactory.Create(string?, string)

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.