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)
67
if (randomWalkOffset < 0 || randomWalkOffset >=
_rangeSize
)
72
if (randomWalkStep < 1 || randomWalkStep >
_rangeSize
|| GreatestCommonDivisor(randomWalkStep,
_rangeSize
) != 1)
80
_visited = new bool[
_rangeSize
];
143
_nextCandidate = _visitedCount ==
_rangeSize
? null : GetNextIncrementalCandidate(candidate);
155
if (_visitedCount ==
_rangeSize
)
160
for (var i = 1; i <=
_rangeSize
; i++)
162
var candidate = (afterIndex + i) %
_rangeSize
;
174
if (_visitedCount ==
_rangeSize
)
179
for (var i = 0; i <
_rangeSize
; i++)
182
_randomWalkCursor = (_randomWalkCursor + _randomWalkStep) %
_rangeSize
;