TransactionDecorator Constructor (transactionToUse, scopeTimeout)

Design Pattern Framework 3.5

Design Pattern Framework 3.5 TransactionDecorator Constructor (transactionToUse, scopeTimeout)
Patterns-In-Action! ApplicationTransactionsTransactionDecoratorTransactionDecorator(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.

Assembly: Transactions (Module: Transactions) Version: 1.0.0.0 (1.0.0.0)