다음을 통해 공유


IStateProviderReplica2 Interface

Definition

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

public interface IStateProviderReplica2 : Microsoft.ServiceFabric.Data.IStateProviderReplica
type IStateProviderReplica2 = interface
    interface IStateProviderReplica
Public Interface IStateProviderReplica2
Implements IStateProviderReplica
Derived
Implements

Properties

OnDataLossAsync

Function called during suspected data-loss.

(Inherited from IStateProviderReplica)
OnRestoreCompletedAsync

Function called after restore has been performed on the replica.

Methods

Abort()

Forcefully abort the state provider replica.

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

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

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

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

(Inherited from IStateProviderReplica)
ChangeRoleAsync(ReplicaRole, CancellationToken)

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

(Inherited from IStateProviderReplica)
CloseAsync(CancellationToken)

Gracefully close the state provider replica.

(Inherited from IStateProviderReplica)
Initialize(StatefulServiceInitializationParameters)

Initialize the state provider replica using the service initialization information.

(Inherited from IStateProviderReplica)
OpenAsync(ReplicaOpenMode, IStatefulServicePartition, CancellationToken)

Open the state provider replica for use.

(Inherited from 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>>).

(Inherited from IStateProviderReplica)
RestoreAsync(String)

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

(Inherited from IStateProviderReplica)

Applies to