Partager via


IPersistentStateFactory.Create Méthode

Définition

Surcharges

Create<TState>(IGrainActivationContext, IPersistentStateConfiguration)
Create<TState>(IGrainContext, IPersistentStateConfiguration)

Crée une instance d’état persistant pour le grain fourni.

Create<TState>(IGrainActivationContext, IPersistentStateConfiguration)

Source:
IPersistentStateFactory.cs
public Orleans.Runtime.IPersistentState<TState> Create<TState> (Orleans.Runtime.IGrainActivationContext context, Orleans.Runtime.IPersistentStateConfiguration config) where TState : new();
public Orleans.Runtime.IPersistentState<TState> Create<TState> (Orleans.Runtime.IGrainActivationContext context, Orleans.Runtime.IPersistentStateConfiguration config);
abstract member Create : Orleans.Runtime.IGrainActivationContext * Orleans.Runtime.IPersistentStateConfiguration -> Orleans.Runtime.IPersistentState<'State (requires 'State : (new : unit -> 'State))> (requires 'State : (new : unit -> 'State))
abstract member Create : Orleans.Runtime.IGrainActivationContext * Orleans.Runtime.IPersistentStateConfiguration -> Orleans.Runtime.IPersistentState<'State>
Public Function Create(Of TState As New) (context As IGrainActivationContext, config As IPersistentStateConfiguration) As IPersistentState(Of TState)
Public Function Create(Of TState) (context As IGrainActivationContext, config As IPersistentStateConfiguration) As IPersistentState(Of TState)

Paramètres de type

TState

Paramètres

Retours

S’applique à

Create<TState>(IGrainContext, IPersistentStateConfiguration)

Crée une instance d’état persistant pour le grain fourni.

public Orleans.Runtime.IPersistentState<TState> Create<TState> (Orleans.Runtime.IGrainContext context, Orleans.Runtime.IPersistentStateConfiguration config);
abstract member Create : Orleans.Runtime.IGrainContext * Orleans.Runtime.IPersistentStateConfiguration -> Orleans.Runtime.IPersistentState<'State>
Public Function Create(Of TState) (context As IGrainContext, config As IPersistentStateConfiguration) As IPersistentState(Of TState)

Paramètres de type

TState

Type d’état sous-jacent.

Paramètres

context
IGrainContext

Contexte de grain.

config
IPersistentStateConfiguration

Configuration de la facette d’état.

Retours

Instance d’état persistant pour le grain fourni avec la configuration spécifiée.

S’applique à