public void OnCommitted(DbConnection connection) { _transactionEventTimeline.WriteTimelineMessage(); _transactionLifetimeTimeline.WriteTimelineMessage(true); _transactionEventTimeline = null; _transactionLifetimeTimeline = null; }
public void OnStartingTransaction(DbConnection connection) { _transactionLifetimeTimeline = TransactionInspector.CreateLifetimeTimeline(connection, _connectionId); _transactionEventTimeline = TransactionInspector.CreateEventTimeline(connection, _connectionId, _transactionLifetimeTimeline.TransactionId, TransactionEvent.BeginTransaction); }
public void OnRollbacked(DbConnection connection) { _transactionEventTimeline.WriteTimelineMessage(); _transactionLifetimeTimeline.WriteTimelineMessage(false); _transactionEventTimeline = null; _transactionLifetimeTimeline = null; }