Nexus.Transactions.TransactionScope.Dispose C# (CSharp) Method

Dispose() public method

Disposes of the transaction scope, and removes the ambient transaction.
This makes sure the transaction is rolled back if the scope hasn't completed.
public Dispose ( ) : void
return void
		public void Dispose()
		{
			if (!m_booCompleted)
				m_trnTransaction.Rollback();
			if (m_booOwnsTransaction)
				Transaction.Current = null;
		}