Home

Castle Stronghold

ITransaction API Document

Represents the contract for a transaction.

Properties

NameTypeDescription
StatusTransactionStatus Returns the current transaction status.
ContextIDictionary Transaction context. Can be used by applications.
IsChildTransactionBoolean
IsRollbackOnlySetBoolean

Methods

RegisterSynchronization(ISynchronization synchronization)

Registers a synchronization object that will be invoked prior and after the transaction completion (commit or rollback)

ParameterDescription
synchronization

Enlist(IResource resource)

Register a participant on the transaction.

ParameterDescription
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

Google
Search WWW Search castleproject.org