Aracılığıyla paylaş


ActorService.RunAsync(CancellationToken) Method

Definition

protected override System.Threading.Tasks.Task RunAsync (System.Threading.CancellationToken cancellationToken);
override this.RunAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
Protected Overrides Function RunAsync (cancellationToken As CancellationToken) As Task

Parameters

cancellationToken
CancellationToken

The token to monitor for cancellation requests.

Returns

A task that represents the asynchronous operation of loading reminders when the replica becomes primary.

Remarks

If you need to override this method, please make sure to call this method from your overridden method. Also make sure your implementation of overridden method conforms to the guideline specified for RunAsync(CancellationToken).

Failing to do so can cause failover, reconfiguration or upgrade of your actor service to get stuck and can impact availibility of your service.

Applies to