public void OnExecuteScalarStart(DbCommand command)
 {
     _commandTimeline = CommandInspector.CreateTimeline(command, _connectionId, _transactionLifetimeTimeline?.TransactionId);
 }
 public void OnExecuteScalarFinish(DbCommand command, object executionRestlt)
 {
     // Record is always 1.
     _commandTimeline.WriteTimelineMessage(1);
     _commandTimeline = null;
 }
 public void OnCommandError(DbCommand command, Exception exception)
 {
     _commandTimeline.WriteTimelineMessage(true);
     _commandTimeline = null;
 }
 public void OnExecuteNonQueryFinish(DbCommand command, int executionRestlt)
 {
     _commandTimeline.WriteTimelineMessage(executionRestlt);
     _commandTimeline = null;
 }
 public void OnReaderFinish(DbDataReader reader, int records)
 {
     _commandTimeline.WriteTimelineMessage(records);
     _commandTimeline = null;
 }