public void ConnectionPoolAfterRemovingAConnection(ConnectionPoolAfterRemovingAConnectionEvent @event)
        {
            ConnectionPoolPerformanceRecorder recorder;

            if (_connectionPoolRecorders.TryGetValue(@event.ConnectionId.ServerId, out recorder))
            {
                recorder.ConnectionRemoved();
            }
        }
Пример #2
0
 public override void ConnectionPoolAfterRemovingAConnection(ConnectionPoolAfterRemovingAConnectionEvent @event)
 {
     Log(LogLevel.Info, "{0}-pool: removed connection {1} in {2}ms.", Label(@event.ConnectionId.ServerId), Format(@event.ConnectionId), @event.Elapsed.TotalMilliseconds);
 }