Skip to content

ITransactionalStateStorageEvents<TState> Methods

Receives transactional state changes which are accumulated into a storage batch.

Cancel(long)

abstract
public abstract void Cancel(long sequenceNumber)
Cancels the prepared state version with the specified sequence number and excludes that version and later prepared versions from the batch.

Parameters

sequenceNumberlong
The sequence number to cancel.

Collect(Guid)

abstract
public abstract void Collect(Guid transactionId)
Removes the recovery record for the specified transaction.

Parameters

transactionIdGuid
The transaction identifier.

Commit(Guid, DateTime, List<ParticipantId>)

abstract
public abstract void Commit(Guid transactionId, DateTime timestamp, List<ParticipantId> writeResources)
Records a committed transaction for recovery.

Parameters

transactionIdGuid
The transaction identifier.
timestampDateTime
The transaction commit timestamp.
writeResourcesList<ParticipantId>
The participants which wrote during the transaction.

Confirm(long)

abstract
public abstract void Confirm(long sequenceNumber)
Confirms committed state through the specified sequence number.

Parameters

sequenceNumberlong
The confirmed sequence number.

Prepare(long, Guid, DateTime, ParticipantId, TState)

abstract
public abstract void Prepare(long sequenceNumber, Guid transactionId, DateTime timestamp, ParticipantId transactionManager, TState state)
Adds or replaces a prepared state version.

Parameters

sequenceNumberlong
The local sequence number assigned to the transaction.
transactionIdGuid
The transaction identifier.
timestampDateTime
The transaction commit timestamp.
transactionManagerParticipantId
The transaction manager coordinating the transaction.
stateTState
The state produced by the transaction.

Read(DateTime)

abstract
public abstract void Read(DateTime timestamp)
Records a read at the specified logical timestamp.

Parameters

timestampDateTime
The logical timestamp of the read.