private void PushScopeTransaction(TransactionScopeProxy transaction) { if (_scopedTransactions == null) { _scopedTransactions = new Stack <TransactionScopeProxy>(); } _scopedTransactions.Push(transaction); }
private void PushScopeTransaction(TransactionScopeProxy transaction) { if (ScopedTransactions == null) { ScopedTransactions = GetNewScopedTransactions(); } ScopedTransactions.Value.Push(transaction); }
public void EndTransaction() { TransactionScopeProxy currentTransaction = null; try { currentTransaction = _scopedTransactions == null ? null : _scopedTransactions.Pop(); } catch (InvalidOperationException) { } if (currentTransaction != null) { currentTransaction.Dispose(); } }
private void PushScopeTransaction(TransactionScopeProxy transaction) { if (_scopedTransactions == null) { _scopedTransactions = new Stack<TransactionScopeProxy>(); } _scopedTransactions.Push(transaction); }