Constructor SemaphoreSlimRequest
SemaphoreSlimRequest(SemaphoreSlim, CancellationToken)
Initializes a new instance of the SemaphoreSlimRequest class.
public SemaphoreSlimRequest(SemaphoreSlim semaphore, CancellationToken cancellationToken)
Parameters
semaphore
SemaphoreSlimThe semaphore.
cancellationToken
CancellationTokenThe cancellation token.
SemaphoreSlimRequest(SemaphoreSlim, TimeSpan, CancellationToken)
Initializes a new instance of the SemaphoreSlimRequest class.
public SemaphoreSlimRequest(SemaphoreSlim semaphore, TimeSpan timeout, CancellationToken cancellationToken)
Parameters
semaphore
SemaphoreSlimThe semaphore.
timeout
TimeSpanThe timeout.
cancellationToken
CancellationTokenThe cancellation token.