INamedTransactionalStateStorageFactory.Create<TState> 方法

定义

按名称创建 ITransactionalStateStorage。

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)

类型参数

TState

参数

storageName
String

要创建的事务状态存储的名称。

stateName
String

事务状态的名称。

返回

ITransactionalStateStorage,如果未找到,则为 null。

适用于