Compartir a través de


VolatileActorStateProvider.IStateProviderReplica.ChangeRoleAsync Método

Definición

Notifique a la réplica del proveedor de estado que su rol está cambiando, por ejemplo, a Principal o Secundario.

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

Parámetros

newRole
ReplicaRole

El nuevo rol de réplica, como principal o secundario.

cancellationToken
CancellationToken

Token para supervisar solicitudes de cancelación.

Devoluciones

Tarea que representa la operación asincrónica del rol de cambio.

Implementaciones

Se aplica a