Table of Contents

Class SemaphoreSlimRequest

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

Represents a tentative request to acquire a SemaphoreSlim.

public sealed class SemaphoreSlimRequest : IDisposable
Inheritance
SemaphoreSlimRequest
Implements
Inherited Members

Constructors

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.

Properties

Task

Gets the semaphore wait task.

public Task Task { get; }

Property Value

Task

The semaphore wait task.

Methods

Dispose()

public void Dispose()