Skip to content

ITransactionManager.PrepareAndCommit(Guid, AccessCounter, DateTime, List<ParticipantId>, int)

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

abstract
View source
public abstract Task<TransactionalStatus> PrepareAndCommit(Guid transactionId, AccessCounter accessCount, DateTime timeStamp, List<ParticipantId> writerResources, int totalParticipants)
Request sent by TA to TM. The TM responds after committing or aborting the transaction.

Parameters

transactionIdGuid
The identifier of the transaction to prepare.
accessCountAccessCounter
The number of reads and writes performed on this participant by the transaction.
timeStampDateTime
The transaction commit timestamp.
writerResourcesList<ParticipantId>
The participants which wrote during the transaction.
totalParticipantsint
The total number of participants in the transaction.

Returns

A task whose result is the final transaction status.