Compartir a través de


ActorService.OnChangeRoleAsync(ReplicaRole, CancellationToken) Método

Definición

protected override System.Threading.Tasks.Task OnChangeRoleAsync (System.Fabric.ReplicaRole newRole, System.Threading.CancellationToken cancellationToken);
override this.OnChangeRoleAsync : System.Fabric.ReplicaRole * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Protected Overrides Function OnChangeRoleAsync (newRole As ReplicaRole, cancellationToken As CancellationToken) As Task

Parámetros

newRole
ReplicaRole

Nuevo rol para la réplica.

cancellationToken
CancellationToken

Token para supervisar solicitudes de cancelación.

Devoluciones

Tarea que representa la operación asincrónica realizada cuando la réplica se convierte en principal.

Se aplica a