ITransaction API Document
Represents the contract for a transaction.
Properties
| Name | Type | Description |
|---|---|---|
| Status | TransactionStatus | Returns the current transaction status. |
| Context | IDictionary | Transaction context. Can be used by applications. |
| IsChildTransaction | Boolean | |
| IsRollbackOnlySet | Boolean |
Methods
RegisterSynchronization(ISynchronization synchronization)
Registers a synchronization object that will be invoked prior and after the transaction completion (commit or rollback)
| Parameter | Description |
|---|---|
| synchronization |
Enlist(IResource resource)
Register a participant on the transaction.
| Parameter | Description |
|---|---|
| resource |
Rollback()
Cancels the transaction, rolling back the modifications
Commit()
Succeed the transaction, persisting the modifications
Begin()
Starts the transaction. Implementors should activate the apropriate resources in order to start the underlying transaction