Compartir a través de


ReliableCollectionsActorStateProvider.IStateProviderReplica.OpenAsync Método

Definición

Abra la réplica del proveedor de estado para su 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 si se trata de una réplica nueva o existente.

partition
IStatefulServicePartition

Partición a la que pertenece esta réplica.

cancellationToken
CancellationToken

Token para supervisar solicitudes de cancelación.

Devoluciones

Tarea que representa la operación de apertura asincrónica. El resultado contiene el replicador responsable de replicar el estado entre otras réplicas del proveedor de estado de la partición.

Implementaciones

Se aplica a