Dela via


IAtomicGroupStateReplicator Interface

Definition

Exposes replication-related functions for atomic groups.

public interface IAtomicGroupStateReplicator
type IAtomicGroupStateReplicator = interface
Public Interface IAtomicGroupStateReplicator

Remarks

The IAtomicGroupStateReplicator is available if the service is a member of a service group. The service must implement IAtomicGroupStateProvider and be stateful. When creating a FabricReplicator via CreateReplicator(IStateProvider, ReplicatorSettings), instead of passing in a regular IStateProvider, the service can pass in the IAtomicGroupStateProvider that it implements instead. As a result, it receives a IAtomicGroupStateReplicator.

Methods

CreateAtomicGroup()

Creates a new atomic group and obtains the ID of the atomic group.

ReplicateAtomicGroupCommitAsync(Int64, CancellationToken, Int64)

Asynchronously commits state replication for the atomic group.

ReplicateAtomicGroupOperationAsync(Int64, OperationData, CancellationToken, Int64)

Replicates some OperationData as a part of an atomic group.

ReplicateAtomicGroupRollbackAsync(Int64, CancellationToken, Int64)

Asynchronously rolls-back state replication for the atomic group.

Applies to