public void OnClosed(DbConnection connection)
 {
     _connectionEventTimeline.WriteTimelineMessage();
     _connectionLifetimeTimeline.WriteTimelineMessage();
     _connectionEventTimeline    = null;
     _connectionLifetimeTimeline = null;
 }
 public void OnOpened(DbConnection connection)
 {
     _connectionEventTimeline.WriteTimelineMessage();
     _connectionEventTimeline = null;
 }
 public void OnClosing(DbConnection connection)
 {
     _connectionEventTimeline = ConnectionInspector.CreateEventTimeline(connection, _connectionId, ConnectionEvent.Close);
 }
 public void OnOpening(DbConnection connection)
 {
     _connectionLifetimeTimeline = ConnectionInspector.CreateLifetimeTimeline(connection, _connectionId);
     _connectionEventTimeline    = ConnectionInspector.CreateEventTimeline(connection, _connectionId, ConnectionEvent.Open);
 }