다음을 통해 공유


VolatileActorStateProvider.IStateProviderReplica.BackupAsync Method

Definition

Overloads

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

Performs backup of state managed by this actor sate provider.

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

Performs a full backup of state managed by this actor state provider

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

Performs backup of 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

Backup/restore is not supported by VolatileActorStateProvider.

Applies to

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

Performs a full backup of state managed by this actor state 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

Backup/restore is not supported by VolatileActorStateProvider.

Applies to