Пример #1
0
 /// <inheritdoc cref="IAdoNetProfiler.OnCommitting(DbTransaction)" />
 public void OnCommitting(DbTransaction transaction)
 {
     _transactionEventTimeline = TransactionInspector.CreateEventTimeline(transaction.Connection, _connectionId, _transactionLifetimeTimeline.TransactionId, TransactionEvent.Commit);
 }
Пример #2
0
 /// <inheritdoc cref="IAdoNetProfiler.OnRollbacking(DbTransaction)" />
 public void OnRollbacking(DbTransaction transaction)
 {
     _transactionEventTimeline = TransactionInspector.CreateEventTimeline(transaction.Connection, _connectionId, _transactionLifetimeTimeline.TransactionId, TransactionEvent.Rollback);
 }
Пример #3
0
 /// <inheritdoc cref="IAdoNetProfiler.OnStartingTransaction(DbConnection)" />
 public void OnStartingTransaction(DbConnection connection)
 {
     _transactionLifetimeTimeline = TransactionInspector.CreateLifetimeTimeline(connection, _connectionId);
     _transactionEventTimeline    = TransactionInspector.CreateEventTimeline(connection, _connectionId, _transactionLifetimeTimeline.TransactionId, TransactionEvent.BeginTransaction);
 }