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