Skip to content

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

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

View source
public Task<TransactionalStatus> PrepareAndCommit(string resourceId, Guid transactionId, AccessCounter accessCount, DateTime timeStamp, List<ParticipantId> writeResources, int totalResources, 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.
totalResourcesint
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.