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.
Task Abort()
Aborts the transaction.
TransactionEventHandler StateChanged
Event raised when the transaction state has changed.
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.
delegate Task TransactionEventHandler(object Sender, TransactionEventArgs e)
Delegate for transaction events.
TransactionState
State of a transaction