/// <inheritdoc /> protected override void Dispose(bool disposing) { base.Dispose(disposing); if (!disposing) { return; } TransactionCommitEnd.Deregister(); TransactionCommitStart.Deregister(); TransactionRollbackEnd.Deregister(); TransactionRollbackStart.Deregister(); InnerTransaction.Dispose(); }
private void OnTransactionCommitEnd(DateTimeOffset startTime, DateTimeOffset endTime, Exception exception) { var args = new ProfilingEventEndArgs <DbTransaction>(InnerTransaction, startTime, endTime, exception); TransactionCommitEnd?.Invoke(this, args); }