private void Handle(ConnectionPoolRemovedConnectionEvent @event) { ConnectionPoolPerformanceRecorder recorder; if (_connectionPoolRecorders.TryGetValue(@event.ServerId, out recorder)) { recorder.ConnectionRemoved(); } }
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); }