Table of Contents

Constructor SemaphoreSlimRequest

Namespace
MongoDB.Driver.Core.Misc
Assembly
MongoDB.Driver.dll

SemaphoreSlimRequest(SemaphoreSlim, CancellationToken)

Initializes a new instance of the SemaphoreSlimRequest class.

public SemaphoreSlimRequest(SemaphoreSlim semaphore, CancellationToken cancellationToken)

Parameters

semaphore SemaphoreSlim

The semaphore.

cancellationToken CancellationToken

The cancellation token.

SemaphoreSlimRequest(SemaphoreSlim, TimeSpan, CancellationToken)

Initializes a new instance of the SemaphoreSlimRequest class.

public SemaphoreSlimRequest(SemaphoreSlim semaphore, TimeSpan timeout, CancellationToken cancellationToken)

Parameters

semaphore SemaphoreSlim

The semaphore.

timeout TimeSpan

The timeout.

cancellationToken CancellationToken

The cancellation token.