1 write to _rangeSize
Aspire.Hosting (1)
Dcp\ProxylessEndpointPortAllocator.cs (1)
65_rangeSize = rangeEnd - rangeStart + 1;
11 references to _rangeSize
Aspire.Hosting (11)
Dcp\ProxylessEndpointPortAllocator.cs (11)
67if (randomWalkOffset < 0 || randomWalkOffset >= _rangeSize) 72if (randomWalkStep < 1 || randomWalkStep > _rangeSize || GreatestCommonDivisor(randomWalkStep, _rangeSize) != 1) 80_visited = new bool[_rangeSize]; 143_nextCandidate = _visitedCount == _rangeSize ? null : GetNextIncrementalCandidate(candidate); 155if (_visitedCount == _rangeSize) 160for (var i = 1; i <= _rangeSize; i++) 162var candidate = (afterIndex + i) % _rangeSize; 174if (_visitedCount == _rangeSize) 179for (var i = 0; i < _rangeSize; i++) 182_randomWalkCursor = (_randomWalkCursor + _randomWalkStep) % _rangeSize;