private void Handle(ConnectionPoolOpenedEvent @event) { var serverPackage = GetServerPackage(@event.ServerId.EndPoint); ConnectionPoolPerformanceRecorder recorder = new ConnectionPoolPerformanceRecorder(@event.ConnectionPoolSettings.MaxConnections, _appPackage, serverPackage); if (_connectionPoolRecorders.TryAdd(@event.ServerId, recorder)) { recorder.Opened(); } }
private void Handle(ConnectionPoolOpenedEvent @event) { Debug(TraceSourceEventHelper.ConnectionPoolIdBase + 1, "{0}-pool: opened.", TraceSourceEventHelper.Label(@event.ServerId)); }