Compartilhar via


IPersistentStateFactory.Create Método

Definição

Sobrecargas

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

Cria uma instância de estado persistente para a granularidade fornecida.

Create<TState>(IGrainActivationContext, IPersistentStateConfiguration)

Origem:
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)

Parâmetros de tipo

TState

Parâmetros

Retornos

Aplica-se a

Create<TState>(IGrainContext, IPersistentStateConfiguration)

Cria uma instância de estado persistente para a granularidade fornecida.

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)

Parâmetros de tipo

TState

O tipo de estado subjacente.

Parâmetros

context
IGrainContext

O contexto de granularidade.

config
IPersistentStateConfiguration

A configuração de faceta de estado.

Retornos

Uma instância de estado persistente para a granularidade fornecida com a configuração especificada.

Aplica-se a