KvsActorStateProviderBase.IStateProviderReplica.BackupAsync Method

Definition

Overloads

IStateProviderReplica.BackupAsync(Func<BackupInfo,CancellationToken,Task<Boolean>>)

Performs a full backup of all reliable state managed by this actor sate provider.

IStateProviderReplica.BackupAsync(BackupOption, TimeSpan, CancellationToken, Func<BackupInfo,CancellationToken,Task<Boolean>>)

Performs backup of reliable state managed by this actor sate provider.

IStateProviderReplica.BackupAsync(Func<BackupInfo,CancellationToken,Task<Boolean>>)

Performs a full backup of all reliable state managed by this actor sate provider.

System.Threading.Tasks.Task IStateProviderReplica.BackupAsync (Func<Microsoft.ServiceFabric.Data.BackupInfo,System.Threading.CancellationToken,System.Threading.Tasks.Task<bool>> backupCallback);
abstract member Microsoft.ServiceFabric.Data.IStateProviderReplica.BackupAsync : Func<Microsoft.ServiceFabric.Data.BackupInfo, System.Threading.CancellationToken, System.Threading.Tasks.Task<bool>> -> System.Threading.Tasks.Task
override this.Microsoft.ServiceFabric.Data.IStateProviderReplica.BackupAsync : Func<Microsoft.ServiceFabric.Data.BackupInfo, System.Threading.CancellationToken, System.Threading.Tasks.Task<bool>> -> System.Threading.Tasks.Task
Function BackupAsync (backupCallback As Func(Of BackupInfo, CancellationToken, Task(Of Boolean))) As Task Implements IStateProviderReplica.BackupAsync

Parameters

backupCallback
Func<BackupInfo,CancellationToken,Task<Boolean>>

Callback to be called when the backup folder has been created locally and is ready to be moved out of the node.

Returns

Task that represents the asynchronous backup operation.

Implements

Remarks

A FULL backup will be performed with a one-hour timeout. Boolean returned by the backupCallback indicate whether the service was able to successfully move the backup folder to an external location. If false is returned, BackupAsync throws InvalidOperationException with the relevant message indicating backupCallback returned false. Also, backup will be marked as unsuccessful.

Applies to

IStateProviderReplica.BackupAsync(BackupOption, TimeSpan, CancellationToken, Func<BackupInfo,CancellationToken,Task<Boolean>>)

Performs backup of reliable state managed by this actor sate provider.

System.Threading.Tasks.Task IStateProviderReplica.BackupAsync (Microsoft.ServiceFabric.Data.BackupOption option, TimeSpan timeout, System.Threading.CancellationToken cancellationToken, Func<Microsoft.ServiceFabric.Data.BackupInfo,System.Threading.CancellationToken,System.Threading.Tasks.Task<bool>> backupCallback);
abstract member Microsoft.ServiceFabric.Data.IStateProviderReplica.BackupAsync : Microsoft.ServiceFabric.Data.BackupOption * TimeSpan * System.Threading.CancellationToken * Func<Microsoft.ServiceFabric.Data.BackupInfo, System.Threading.CancellationToken, System.Threading.Tasks.Task<bool>> -> System.Threading.Tasks.Task
override this.Microsoft.ServiceFabric.Data.IStateProviderReplica.BackupAsync : Microsoft.ServiceFabric.Data.BackupOption * TimeSpan * System.Threading.CancellationToken * Func<Microsoft.ServiceFabric.Data.BackupInfo, System.Threading.CancellationToken, System.Threading.Tasks.Task<bool>> -> System.Threading.Tasks.Task
Function BackupAsync (option As BackupOption, timeout As TimeSpan, cancellationToken As CancellationToken, backupCallback As Func(Of BackupInfo, CancellationToken, Task(Of Boolean))) As Task Implements IStateProviderReplica.BackupAsync

Parameters

option
BackupOption

The option for the backup.

timeout
TimeSpan

The timeout for the backup.

cancellationToken
CancellationToken

The cancellation token for the backup.

backupCallback
Func<BackupInfo,CancellationToken,Task<Boolean>>

The callback to be called once the backup folder is ready.

Returns

Task that represents the asynchronous operation.

Implements

Remarks

KvsActorStateProviderBase Backup only support Full backup. KVS BackupInfo does not contain backup version. The Backup version is set to invalid.

Applies to