Skip to content

ITransactionManager Methods

Ping(Guid, DateTime, ParticipantId)

abstract
public abstract Task Ping(Guid transactionId, DateTime timeStamp, ParticipantId resource)
One-way message sent by participants to TM, to let TM know they are still waiting to hear about the fate of a transaction.

Parameters

transactionIdGuid
The id of the transaction
timeStampDateTime
The commit timestamp of the transaction
resourceParticipantId
The participant sending the message

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

abstract
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 id of the transaction to prepare
accessCountAccessCounter
number of reads/writes performed on this participant by this transaction
timeStampDateTime
the commit timestamp for this transaction
writerResourcesList<ParticipantId>
the participants who wrote during the transaction
totalParticipantsint
the total number of participants in the transaction

Returns

the status of the transaction

Prepared(Guid, DateTime, ParticipantId, TransactionalStatus)

abstract
public abstract Task Prepared(Guid transactionId, DateTime timeStamp, ParticipantId resource, TransactionalStatus status)
One-way message sent by a participant to the TM after it (successfully or unsuccessfully) prepares.

Parameters

transactionIdGuid
The id of the transaction
timeStampDateTime
The commit timestamp of the transaction
resourceParticipantId
The participant sending the message
statusTransactionalStatus
The outcome of the prepare