Table of Contents

Class SemaphoreSlimThrottle

Namespace
NuGet.Protocol
Assembly
NuGet.Protocol.dll
public class SemaphoreSlimThrottle : IThrottle
Inheritance
SemaphoreSlimThrottle
Implements
Inherited Members
Extension Methods

Constructors

SemaphoreSlimThrottle(SemaphoreSlim)

public SemaphoreSlimThrottle(SemaphoreSlim semaphore)

Parameters

semaphore SemaphoreSlim

Properties

CurrentCount

public int CurrentCount { get; }

Property Value

int

Methods

CreateBinarySemaphore()

public static SemaphoreSlimThrottle CreateBinarySemaphore()

Returns

SemaphoreSlimThrottle

CreateSemaphoreThrottle(int)

public static SemaphoreSlimThrottle CreateSemaphoreThrottle(int initialCount)

Parameters

initialCount int

Returns

SemaphoreSlimThrottle

Release()

public void Release()

WaitAsync()

public Task WaitAsync()

Returns

Task