Partager via


KvsActorStateProviderBase.IStateProviderReplica.ChangeRoleAsync Méthode

Définition

Informez le fournisseur d’état réplica que son rôle est en train de changer, par exemple en principal ou secondaire.

System.Threading.Tasks.Task IStateProviderReplica.ChangeRoleAsync (System.Fabric.ReplicaRole newRole, System.Threading.CancellationToken cancellationToken);
abstract member Microsoft.ServiceFabric.Data.IStateProviderReplica.ChangeRoleAsync : System.Fabric.ReplicaRole * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.Microsoft.ServiceFabric.Data.IStateProviderReplica.ChangeRoleAsync : System.Fabric.ReplicaRole * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Function ChangeRoleAsync (newRole As ReplicaRole, cancellationToken As CancellationToken) As Task Implements IStateProviderReplica.ChangeRoleAsync

Paramètres

newRole
ReplicaRole

Le nouveau rôle réplica, tel que principal ou secondaire.

cancellationToken
CancellationToken

Jeton pour surveiller les requêtes d'annulation.

Retours

Tâche qui représente l’opération de rôle de modification asynchrone.

Implémente

S’applique à