Constructor SemaphoreSlimRequest
SemaphoreSlimRequest(SemaphoreSlim, CancellationToken)
Initializes a new instance of the SemaphoreSlimRequest class.
public SemaphoreSlimRequest(SemaphoreSlim semaphore, CancellationToken cancellationToken)
Parameters
semaphoreSemaphoreSlimThe semaphore.
cancellationTokenCancellationTokenThe cancellation token.
SemaphoreSlimRequest(SemaphoreSlim, TimeSpan, CancellationToken)
Initializes a new instance of the SemaphoreSlimRequest class.
public SemaphoreSlimRequest(SemaphoreSlim semaphore, TimeSpan timeout, CancellationToken cancellationToken)
Parameters
semaphoreSemaphoreSlimThe semaphore.
timeoutTimeSpanThe timeout.
cancellationTokenCancellationTokenThe cancellation token.