共用方式為


FaultInjectionAzureTableTransactionStateStorageFactory.Create 方法

定義

多載

Create(IServiceProvider, String)
Create<TState>(String, IGrainActivationContext)
Create<TState>(String, IGrainContext)

Create(IServiceProvider, String)

來源:
FaultInjectionAzureTableTransactionStateStorage.cs
public static Orleans.Transactions.Abstractions.ITransactionalStateStorageFactory Create (IServiceProvider services, string name);
static member Create : IServiceProvider * string -> Orleans.Transactions.Abstractions.ITransactionalStateStorageFactory
Public Shared Function Create (services As IServiceProvider, name As String) As ITransactionalStateStorageFactory

參數

services
IServiceProvider
name
String

傳回

適用於

Create<TState>(String, IGrainActivationContext)

來源:
FaultInjectionAzureTableTransactionStateStorage.cs
public Orleans.Transactions.Abstractions.ITransactionalStateStorage<TState> Create<TState> (string stateName, Orleans.Runtime.IGrainActivationContext context) where TState : class, new();
abstract member Create : string * Orleans.Runtime.IGrainActivationContext -> Orleans.Transactions.Abstractions.ITransactionalStateStorage<'State (requires 'State : null and 'State : (new : unit -> 'State))> (requires 'State : null and 'State : (new : unit -> 'State))
override this.Create : string * Orleans.Runtime.IGrainActivationContext -> 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}) (stateName As String, context As IGrainActivationContext) As ITransactionalStateStorage(Of TState)

類型參數

TState

參數

stateName
String

傳回

實作

適用於

Create<TState>(String, IGrainContext)

public Orleans.Transactions.Abstractions.ITransactionalStateStorage<TState> Create<TState> (string stateName, Orleans.Runtime.IGrainContext context) where TState : class, new();
abstract member Create : string * Orleans.Runtime.IGrainContext -> Orleans.Transactions.Abstractions.ITransactionalStateStorage<'State (requires 'State : null and 'State : (new : unit -> 'State))> (requires 'State : null and 'State : (new : unit -> 'State))
override this.Create : string * Orleans.Runtime.IGrainContext -> 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}) (stateName As String, context As IGrainContext) As ITransactionalStateStorage(Of TState)

類型參數

TState

參數

stateName
String
context
IGrainContext

傳回

實作

適用於