IStateProviderReplica Interface

Definition

Defines methods a reliable state provider replica must implement for Service Fabric to interact with it.

public interface IStateProviderReplica
type IStateProviderReplica = interface
Public Interface IStateProviderReplica
Derived

Properties

OnDataLossAsync

Function called during suspected data-loss.

Methods

Abort()

Forcefully abort the state provider replica.

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

Performs a backup of all reliable state managed by this IReliableStateManager.

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

Performs a full backup of all reliable state managed by this IReliableStateManager.

ChangeRoleAsync(ReplicaRole, CancellationToken)

Notify the state provider replica that its role is changing, for example to Primary or Secondary.

CloseAsync(CancellationToken)

Gracefully close the state provider replica.

Initialize(StatefulServiceInitializationParameters)

Initialize the state provider replica using the service initialization information.

OpenAsync(ReplicaOpenMode, IStatefulServicePartition, CancellationToken)

Open the state provider replica for use.

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)

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

Applies to