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