public void ConnectionPoolAfterCheckingOutAConnection(ConnectionPoolAfterCheckingOutAConnectionEvent @event) { ConnectionPoolPerformanceRecorder recorder; if (_connectionPoolRecorders.TryGetValue(@event.ConnectionId.ServerId, out recorder)) { recorder.ConnectionCheckedOut(); recorder.WaitQueueExited(); } }
public override void ConnectionPoolAfterCheckingOutAConnection(ConnectionPoolAfterCheckingOutAConnectionEvent @event) { Log(LogLevel.Info, "{0}-pool: checked out connection {1} in {2}ms.", Label(@event.ConnectionId.ServerId), Format(@event.ConnectionId), @event.Elapsed.TotalMilliseconds.ToString()); }