Compartilhar via


ReliableStateManager.IStateProviderReplica.OpenAsync Método

Definição

Abra o provedor de estado réplica para uso.

System.Threading.Tasks.Task<System.Fabric.IReplicator> IStateProviderReplica.OpenAsync (System.Fabric.ReplicaOpenMode openMode, System.Fabric.IStatefulServicePartition partition, System.Threading.CancellationToken cancellationToken);
abstract member Microsoft.ServiceFabric.Data.IStateProviderReplica.OpenAsync : System.Fabric.ReplicaOpenMode * System.Fabric.IStatefulServicePartition * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.IReplicator>
override this.Microsoft.ServiceFabric.Data.IStateProviderReplica.OpenAsync : System.Fabric.ReplicaOpenMode * System.Fabric.IStatefulServicePartition * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.IReplicator>
Function OpenAsync (openMode As ReplicaOpenMode, partition As IStatefulServicePartition, cancellationToken As CancellationToken) As Task(Of IReplicator) Implements IStateProviderReplica.OpenAsync

Parâmetros

openMode
ReplicaOpenMode

Indica se este é um réplica novo ou existente.

partition
IStatefulServicePartition

A partição à qual este réplica pertence.

cancellationToken
CancellationToken

O token a se monitorar para solicitações de cancelamento.

Retornos

Tarefa que representa a operação de abertura assíncrona. O resultado contém o replicador responsável por replicar o estado entre outras réplicas de provedor de estado na partição.

Implementações

Comentários

As tarefas de inicialização do provedor de estado estendido podem ser iniciadas no momento.

Aplica-se a