Skip to content

NamedTransactionalStateStorageFactory Methods

Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.

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.