Design Pattern Framework 3.5
TransactionDecorator Constructor (scopeOption, scopeTimeout)
Patterns-In-Action! Application ► Transactions ► TransactionDecorator ► TransactionDecorator(TransactionScopeOption, TimeSpan)
Initializes a new instance of the TransactionScope class
with the specified timeout value and requirements.
Declaration Syntax
C# | Visual Basic |
public TransactionDecorator( TransactionScopeOption scopeOption, TimeSpan scopeTimeout )
Public Sub New ( _ scopeOption As TransactionScopeOption, _ scopeTimeout As TimeSpan _ )
Parameters
- scopeOption (TransactionScopeOption)
- TransactionScopeOption enumeration that describes the transaction requirements associated with this transaction scope.
- scopeTimeout (TimeSpan)
- The TimeSpan after which the transaction scope times out and aborts the transaction.