private void Dispose(bool disposing)
        {
            if (disposing)
            {
                _transactionContext?.Dispose();
            }

            _transactionContext = null;
        }
Exemplo n.º 2
0
        protected void Dispose(bool disposed)
        {
            var lck = _writeLock;

            _writeLock = null;

            if (lck != null)
            {
                if (disposed)
                {
                    GC.SuppressFinalize(this);
                }
                Monitor.Exit(lck);
            }
            _transaction.Dispose();
        }