Skip to content

ITransactionManagerExtension.PrepareAndCommit(string, Guid, AccessCounter, DateTime, List<ParticipantId>, int, CancellationToken)

PrepareAndCommit(string, Guid, AccessCounter, DateTime, List<ParticipantId>, int, CancellationToken)

virtual
View source
[Orleans.Concurrency.AlwaysInterleave]
[Orleans.Transaction(0)]
[Orleans.Alias(B024EFA6)]
public virtual Task<TransactionalStatus> PrepareAndCommit(string resourceId, Guid transactionId, AccessCounter accessCount, DateTime timeStamp, List<ParticipantId> writeResources, int totalParticipants, CancellationToken cancellationToken)
Requests that the specified transaction manager prepare and commit a transaction.

Parameters

resourceIdstring
The identifier of the transaction manager resource.
transactionIdGuid
The transaction identifier.
accessCountAccessCounter
The number of reads and writes performed on the transaction manager by the transaction.
timeStampDateTime
The transaction commit timestamp.
writeResourcesList<ParticipantId>
The participants which wrote during the transaction.
totalParticipantsint
The total number of participants in the transaction.
cancellationTokenCancellationToken
The token used to cancel the operation.

Returns

A task whose result is the final transaction status.