共用方式為


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。

適用於