Renci.SshNet.Common.SemaphoreLight.SemaphoreLight C# (CSharp) Method

SemaphoreLight() public method

Initializes a new instance of the SemaphoreLight class, specifying the initial number of requests that can be granted concurrently.
is a negative number.
public SemaphoreLight ( int initialCount ) : System
initialCount int The initial number of requests for the semaphore that can be granted concurrently.
return System
        public SemaphoreLight(int initialCount)
        {
            if (initialCount < 0 )
                throw new ArgumentOutOfRangeException("initialCount", "The value cannot be negative.");

            _currentCount = initialCount;
        }