Edit

Share via


INamedTransactionalStateStorageFactory.Create<TState> Method

Definition

Create an ITransactionalStateStorage by name.

public Orleans.Transactions.Abstractions.ITransactionalStateStorage<TState> Create<TState> (string storageName, string stateName) where TState : class, new();
abstract member Create : string * string -> Orleans.Transactions.Abstractions.ITransactionalStateStorage<'State (requires 'State : null and 'State : (new : unit -> 'State))> (requires 'State : null and 'State : (new : unit -> 'State))
Public Function Create(Of TState As {Class, New}) (storageName As String, stateName As String) As ITransactionalStateStorage(Of TState)

Type Parameters

TState

Parameters

storageName
String

Name of transaction state storage to create.

stateName
String

Name of transaction state.

Returns

ITransactionalStateStorage, null if not found.

Applies to