Aracılığıyla paylaş


KvsActorStateProviderBase.IStateProviderReplica.RestoreAsync Method

Definition

Overloads

IStateProviderReplica.RestoreAsync(String)

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

IStateProviderReplica.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>>).

IStateProviderReplica.RestoreAsync(String)

System.Threading.Tasks.Task IStateProviderReplica.RestoreAsync (string backupFolderPath);
abstract member Microsoft.ServiceFabric.Data.IStateProviderReplica.RestoreAsync : string -> System.Threading.Tasks.Task
override this.Microsoft.ServiceFabric.Data.IStateProviderReplica.RestoreAsync : string -> System.Threading.Tasks.Task
Function RestoreAsync (backupFolderPath As String) As Task Implements IStateProviderReplica.RestoreAsync

Parameters

backupFolderPath
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.

Implements

Applies to

IStateProviderReplica.RestoreAsync(String, RestorePolicy, CancellationToken)

System.Threading.Tasks.Task IStateProviderReplica.RestoreAsync (string backupFolderPath, Microsoft.ServiceFabric.Data.RestorePolicy restorePolicy, System.Threading.CancellationToken cancellationToken);
abstract member Microsoft.ServiceFabric.Data.IStateProviderReplica.RestoreAsync : string * Microsoft.ServiceFabric.Data.RestorePolicy * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.Microsoft.ServiceFabric.Data.IStateProviderReplica.RestoreAsync : string * Microsoft.ServiceFabric.Data.RestorePolicy * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Function RestoreAsync (backupFolderPath As String, restorePolicy As RestorePolicy, cancellationToken As CancellationToken) As Task Implements IStateProviderReplica.RestoreAsync

Parameters

backupFolderPath
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

The restore policy.

cancellationToken
CancellationToken

The token to monitor for cancellation requests.

Returns

Task that represents the asynchronous restore operation.

Implements

Applies to