private void Handle(ConnectionPoolRemovedConnectionEvent @event)
        {
            ConnectionPoolPerformanceRecorder recorder;

            if (_connectionPoolRecorders.TryGetValue(@event.ServerId, out recorder))
            {
                recorder.ConnectionRemoved();
            }
        }
Example #2
0
 private void Handle(ConnectionPoolRemovedConnectionEvent @event)
 {
     Debug(TraceSourceEventHelper.ConnectionPoolIdBase + 7, "{0}-pool: removed connection {1} in {2}ms.", TraceSourceEventHelper.Label(@event.ConnectionId.ServerId), TraceSourceEventHelper.Format(@event.ConnectionId), @event.Duration.TotalMilliseconds);
 }