<PackageReference Include="SSH.NET" Version="2013.1.27" />

SemaphoreLight

public class SemaphoreLight
Light implementation of SemaphoreSlim.
public int CurrentCount { get; }

Gets the current count of the SemaphoreLight.

public SemaphoreLight(int initialCount)

Initializes a new instance of the SemaphoreLight class, specifying the initial number of requests that can be granted concurrently.

public int Release()

Exits the SemaphoreLight once.

public int Release(int releaseCount)

Exits the SemaphoreLight a specified number of times.

public void Wait()

Blocks the current thread until it can enter the SemaphoreLight.