1 write to _throttle
NuGet.Commands (1)
RestoreCommand\SourceRepositoryDependencyProvider.cs (1)
57SemaphoreSlim previous = Interlocked.Exchange(ref _throttle, GetThrottleSemaphoreSlim(EnvironmentVariableWrapper.Instance));
13 references to _throttle
NuGet.Commands (13)
RestoreCommand\SourceRepositoryDependencyProvider.cs (13)
263if (_throttle != null) 265await _throttle.WaitAsync(cancellationToken); 277_throttle?.Release(); 380if (_throttle != null) 382await _throttle.WaitAsync(cancellationToken); 409_throttle?.Release(); 478if (_throttle != null) 480await _throttle.WaitAsync(cancellationToken); 493packageDownloader.SetThrottle(_throttle); 528_throttle?.Release(); 649if (_throttle != null) 651await _throttle.WaitAsync(cancellationToken); 677_throttle?.Release();