2using System.Threading.Tasks;
Interface for transactions
Task< bool > Execute()
Executes the transaction.
Task< bool > Prepare()
Prepares the transaction for execution. This step can be used for validation and authorization of the...
Task< bool > Rollback()
Rolls back any changes made during the execution phase.
EventHandlerAsync< TransactionEventArgs > StateChanged
Event raised when the transaction state has changed.
Task Abort()
Aborts the transaction.
TransactionState State
Transaction state.
object Tag
Caller can use this property to tag the transaction with information.
Task< bool > Commit()
Commits any changes made during the execution phase.
TransactionState
State of a transaction