Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TxEnlistment"/> class.
 /// </summary>
 /// <param name="tx">The Transaction.</param>
 public TxEnlistment(Transaction tx)
 {
   _tx = tx;
   _journal = new List<RollbackOperation>();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// The default constructor.
 /// </summary>
 /// <remarks>
 /// This sets up the ambient transaction.
 /// </remarks>
 public TransactionScope()
 {
     m_trnTransaction = new Transaction();
     Transaction.Current = m_trnTransaction;
 }