Skip to content

ITransactionAgent Methods

Coordinates transaction creation, resolution, and abortion for a silo.

Abort(TransactionInfo)

abstract
public abstract Task Abort(TransactionInfo transactionInfo)
Abort a transaction.

Parameters

transactionInfoTransactionInfo
The transaction context information.

Returns

A System.Threading.Tasks.Task representing the abort operation.

Resolve(TransactionInfo)

abstract
public abstract Task<(TransactionalStatus Status, Exception? exception)> ITransactionAgent.Resolve(TransactionInfo transactionInfo)
Resolves a transaction by committing or aborting it.

Parameters

transactionInfoTransactionInfo
The transaction context information.

Returns

The resolution status and the underlying exception, if one contributed to the outcome.

StartTransaction(bool, TimeSpan)

abstract
public abstract Task<TransactionInfo> StartTransaction(bool readOnly, TimeSpan timeout)
Starts a new transaction.

Parameters

readOnlybool
A value indicating whether the transaction permits read operations only.
timeoutTimeSpan
The interval after which the transaction is eligible to be aborted.

Returns

The new transaction's context information.