Skip to main content

Interface IDistributedLock

Namespace: Consul
Assembly: Consul.dll

The interface for the Distributed Lock API Endpoints

public interface IDistributedLock

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)