Skip to main content

Interface IDistributedSemaphore

Namespace: Consul
Assembly: Consul.dll

The interface for the Distributed Semaphore API Endpoints

public interface IDistributedSemaphore

Properties

IsHeld

bool IsHeld { get; }

Property Value

bool

Methods

Acquire(CancellationToken)

Task<CancellationToken> Acquire(CancellationToken ct = default)

Parameters

ct CancellationToken

Returns

Task <CancellationToken >

Destroy(CancellationToken)

Task Destroy(CancellationToken ct = default)

Parameters

ct CancellationToken

Returns

Task

Release(CancellationToken)

Task Release(CancellationToken ct = default)

Parameters

ct CancellationToken

Returns

Task

  • Properties
    • IsHeld
  • Methods
    • Acquire(CancellationToken)
    • Destroy(CancellationToken)
    • Release(CancellationToken)