Share via


StatefulServiceBase.OnRestoreCompletedAsync(CancellationToken) Method

Definition

This method is called when replica's state has been restored successfully via the Backup Restore service. This is only supported when the reliable state provider replica object passed in the constructor is derived from IStateProviderReplica2.

protected virtual System.Threading.Tasks.Task OnRestoreCompletedAsync (System.Threading.CancellationToken cancellationToken);
abstract member OnRestoreCompletedAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.OnRestoreCompletedAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
Protected Overridable Function OnRestoreCompletedAsync (cancellationToken As CancellationToken) As Task

Parameters

cancellationToken
CancellationToken

CancellationToken to monitor for cancellation requests.

Returns

A Task that represents the asynchronous operation.

Applies to