1 write to _throttle
NuGet.Commands (1)
RestoreCommand\SourceRepositoryDependencyProvider.cs (1)
59SemaphoreSlim previous = Interlocked.Exchange(ref _throttle, GetThrottleSemaphoreSlim(EnvironmentVariableWrapper.Instance));
13 references to _throttle
NuGet.Commands (13)
RestoreCommand\SourceRepositoryDependencyProvider.cs (13)
268if (_throttle != null) 270await _throttle.WaitAsync(cancellationToken); 282_throttle?.Release(); 401if (_throttle != null) 403await _throttle.WaitAsync(cancellationToken); 430_throttle?.Release(); 499if (_throttle != null) 501await _throttle.WaitAsync(cancellationToken); 514packageDownloader.SetThrottle(_throttle); 549_throttle?.Release(); 670if (_throttle != null) 672await _throttle.WaitAsync(cancellationToken); 698_throttle?.Release();