Delen via


FabricReplicator.IReplicator.ChangeRoleAsync Method

Definition

This supports the Service Fabric infrastructure and is not meant to be used directly from your code.

System.Threading.Tasks.Task IReplicator.ChangeRoleAsync (System.Fabric.Epoch epoch, System.Fabric.ReplicaRole role, System.Threading.CancellationToken cancellationToken);
abstract member System.Fabric.IReplicator.ChangeRoleAsync : System.Fabric.Epoch * System.Fabric.ReplicaRole * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.System.Fabric.IReplicator.ChangeRoleAsync : System.Fabric.Epoch * System.Fabric.ReplicaRole * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Function ChangeRoleAsync (epoch As Epoch, role As ReplicaRole, cancellationToken As CancellationToken) As Task Implements IReplicator.ChangeRoleAsync

Parameters

epoch
Epoch

This supports the Service Fabric infrastructure and is not meant to be used directly from your code.

role
ReplicaRole

This supports the Service Fabric infrastructure and is not meant to be used directly from your code.

cancellationToken
CancellationToken

The CancellationToken object that the operation is observing. It can be used to send a notification that the operation should be canceled. Note that cancellation is advisory and that the operation might still be completed even if it is canceled.

Returns

A task that represents the asynchronous operation.

Implements

Applies to