Amss.Boilerplate.Common.Transactions.Transaction.Dispose C# (CSharp) Method

Dispose() public method

public Dispose ( ) : void
return void
        public void Dispose()
        {
            if (this.disposed)
            {
                return;
            }

            if (!this.isCompleted)
            {
                this.transactionManager.RollbackTransaction(this.transaction);
            }

            this.transaction.Dispose();

            this.transaction = null;
            this.transactionManager = null;
            this.disposed = true;
        }