Пример #1
0
        /// <inheritdoc />
        protected override void Dispose(bool disposing)
        {
            base.Dispose(disposing);

            if (!disposing)
            {
                return;
            }

            TransactionCommitEnd.Deregister();
            TransactionCommitStart.Deregister();
            TransactionRollbackEnd.Deregister();
            TransactionRollbackStart.Deregister();

            InnerTransaction.Dispose();
        }
Пример #2
0
        private void OnTransactionCommitEnd(DateTimeOffset startTime, DateTimeOffset endTime, Exception exception)
        {
            var args = new ProfilingEventEndArgs <DbTransaction>(InnerTransaction, startTime, endTime, exception);

            TransactionCommitEnd?.Invoke(this, args);
        }