IStateProviderReplica.RestoreAsync IStateProviderReplica.RestoreAsync IStateProviderReplica.RestoreAsync Method

Definition

Overloads

RestoreAsync(String) RestoreAsync(String) RestoreAsync(String)

Restore a backup taken by BackupAsync(Func<BackupInfo,CancellationToken,Task<Boolean>>) or BackupAsync(BackupOption, TimeSpan, CancellationToken, Func<BackupInfo,CancellationToken,Task<Boolean>>).

RestoreAsync(String, RestorePolicy, CancellationToken) RestoreAsync(String, RestorePolicy, CancellationToken)

Restore a backup taken by BackupAsync(Func<BackupInfo,CancellationToken,Task<Boolean>>) or BackupAsync(BackupOption, TimeSpan, CancellationToken, Func<BackupInfo,CancellationToken,Task<Boolean>>).

RestoreAsync(String) RestoreAsync(String) RestoreAsync(String)

Restore a backup taken by BackupAsync(Func<BackupInfo,CancellationToken,Task<Boolean>>) or BackupAsync(BackupOption, TimeSpan, CancellationToken, Func<BackupInfo,CancellationToken,Task<Boolean>>).

public System.Threading.Tasks.Task RestoreAsync (string backupFolderPath);
abstract member RestoreAsync : string -> System.Threading.Tasks.Task
Public Function RestoreAsync (backupFolderPath As String) As Task

Parameters

backupFolderPath
String String String

The directory where the replica is to be restored from. This parameter cannot be null, empty or contain just whitespace. UNC paths may also be provided.

Returns

Task that represents the asynchronous restore operation.

Remarks

A safe restore will be performed, meaning the restore will only be completed if the data to restore is ahead of state of the current replica.

RestoreAsync(String, RestorePolicy, CancellationToken) RestoreAsync(String, RestorePolicy, CancellationToken)

Restore a backup taken by BackupAsync(Func<BackupInfo,CancellationToken,Task<Boolean>>) or BackupAsync(BackupOption, TimeSpan, CancellationToken, Func<BackupInfo,CancellationToken,Task<Boolean>>).

public System.Threading.Tasks.Task RestoreAsync (string backupFolderPath, Microsoft.ServiceFabric.Data.RestorePolicy restorePolicy, System.Threading.CancellationToken cancellationToken);
abstract member RestoreAsync : string * Microsoft.ServiceFabric.Data.RestorePolicy * System.Threading.CancellationToken -> System.Threading.Tasks.Task

Parameters

backupFolderPath
String String String

The directory where the replica is to be restored from. This parameter cannot be null, empty or contain just whitespace. UNC paths may also be provided.

restorePolicy
RestorePolicy RestorePolicy RestorePolicy

The restore policy.

cancellationToken
CancellationToken CancellationToken CancellationToken

The token to monitor for cancellation requests.

Returns

Task that represents the asynchronous restore operation.

Applies to