Dela via


IAtomicGroupStateReplicator.ReplicateAtomicGroupOperationAsync Method

Definition

Replicates some OperationData as a part of an atomic group.

public System.Threading.Tasks.Task<long> ReplicateAtomicGroupOperationAsync (long atomicGroupId, System.Fabric.OperationData operationData, System.Threading.CancellationToken cancellationToken, out long sequenceNumber);
abstract member ReplicateAtomicGroupOperationAsync : int64 * System.Fabric.OperationData * System.Threading.CancellationToken * int64 -> System.Threading.Tasks.Task<int64>
Public Function ReplicateAtomicGroupOperationAsync (atomicGroupId As Long, operationData As OperationData, cancellationToken As CancellationToken, ByRef sequenceNumber As Long) As Task(Of Long)

Parameters

atomicGroupId
Int64

The ID of the atomic group that is obtained from CreateAtomicGroup() and includes the OperationData.

operationData
OperationData

An OperationData to be replicated.

cancellationToken
CancellationToken

The CancellationToken object that the operation is observing. It can be used to send a notification that the operation should be canceled. Note that cancellation is advisory and that the operation might still be completed even if it is canceled.

sequenceNumber
Int64

The LSN of the operation, as an out parameter.

Returns

Returns Task<TResult> of type long, the LSN of the replicated atomic group operation.

Applies to