Class SemaphoreSlimThrottle
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
Methods
CreateBinarySemaphore()
public static SemaphoreSlimThrottle CreateBinarySemaphore()
Returns
CreateSemaphoreThrottle(int)
public static SemaphoreSlimThrottle CreateSemaphoreThrottle(int initialCount)
Parameters
initialCount
int
Returns
Release()
public void Release()
WaitAsync()
public Task WaitAsync()