void Initialize(TransactionScopeOption scopeOption, Transaction tx, TransactionOptions options, DTCOption interop, TimeSpan scopeTimeout, TransactionScopeAsyncFlowOption asyncFlow) { completed = false; isRoot = false; nested = 0; asyncFlowEnabled = asyncFlow == TransactionScopeAsyncFlowOption.Enabled; if (scopeTimeout < TimeSpan.Zero) { throw new ArgumentOutOfRangeException("scopeTimeout"); } this.timeout = scopeTimeout; oldTransaction = Transaction.CurrentInternal; Transaction.CurrentInternal = transaction = InitTransaction(tx, scopeOption, options); if (transaction != null) { transaction.InitScope(this); } if (parentScope != null) { parentScope.nested++; } }
void Initialize(TransactionScopeOption scopeOption, Transaction tx, TransactionOptions options, DTCOption interop, TimeSpan timeout) { completed = false; isRoot = false; nested = 0; oldTransaction = Transaction.CurrentInternal; Transaction.CurrentInternal = transaction = InitTransaction(tx, scopeOption); if (transaction != null) { transaction.InitScope(this); } if (parentScope != null) { parentScope.nested++; } }
void Initialize (TransactionScopeOption scopeOption, Transaction tx, TransactionOptions options, DTCOption interop, TimeSpan timeout) { completed = false; isRoot = false; nested = 0; if (timeout < TimeSpan.Zero) throw new ArgumentOutOfRangeException ("timeout"); this.timeout = timeout; oldTransaction = Transaction.CurrentInternal; Transaction.CurrentInternal = transaction = InitTransaction (tx, scopeOption); if (transaction != null) transaction.InitScope (this); if (parentScope != null) parentScope.nested ++; }
void Initialize (TransactionScopeOption scopeOption, Transaction tx, TransactionOptions options, DTCOption interop, TimeSpan timeout) { completed = false; isRoot = false; nested = 0; oldTransaction = Transaction.CurrentInternal; Transaction.CurrentInternal = transaction = InitTransaction (tx, scopeOption); if (transaction != null) transaction.InitScope (this); if (parentScope != null) parentScope.nested ++; }