Design Pattern Framework 3.5
TransactionDecorator Constructor (transactionToUse, scopeTimeout)
Patterns-In-Action! Application ► Transactions ► TransactionDecorator ► TransactionDecorator(Transaction, TimeSpan)
Initializes a new instance of the TransactionScope class
with the specified timeout value, and sets the specified
transaction as the ambient transaction, so that transactional
work done inside the scope uses this transDoFactory.
Declaration Syntax
C# | Visual Basic |
public TransactionDecorator( Transaction transactionToUse, TimeSpan scopeTimeout )
Public Sub New ( _ transactionToUse As Transaction, _ scopeTimeout As TimeSpan _ )
Parameters
- transactionToUse (Transaction)
- Represents a transaction.
- scopeTimeout (TimeSpan)
- The TimeSpan after which the transaction scope times out and aborts the transaction.