示例#1
0
        /// <inheritdoc/>
        protected override void Dispose(bool disposing)
        {
            if (!IsDisposed &&
                disposing &&
                TransactionContext != null)
            {
                if (_rowsToDelete.Any())
                {
                    PruneTransactionRows(force: true);
                }
                TransactionContext.Dispose();
            }

            base.Dispose(disposing);
        }
示例#2
0
        protected override void Dispose(bool disposing)
        {
            if (!IsDisposed &&
                disposing &&
                TransactionContext != null)
            {
                if (_rowsToDelete.Any())
                {
                    try
                    {
                        PruneTransactionHistory(force: true, useExecutionStrategy: false);
                    }
                    catch (Exception)
                    {
                    }
                }
                TransactionContext.Dispose();
            }

            base.Dispose(disposing);
        }