// disposing: true if Dispose() was called, false // if being finalized by the garbage collector protected override void Dispose(bool disposing) { if (disposing) { // Close the transaction before closing the lock if (InnerTransaction != null) { InnerTransaction.Dispose(); InnerTransaction = null; } if (_transactionLock != null) { _transactionLock.CloseWriter(); } } base.Dispose(disposing); }
/// <inheritdoc/> protected override void Dispose(bool disposing) { try { if (disposing) { if (InnerTransaction != null) { InnerTransaction.Dispose(); InnerTransaction = null; } if (InnerConnection != null) { InnerConnection.Close(); InnerConnection = null; } } } finally { base.Dispose(disposing); } }