Skip to content

Search EricksonLopez.* Ecosystem

Type a library name, NuGet package ID, .NET type, or architectural concept to search across the portal.

Core Concepts — Providers, Handles & Fencing

EricksonLopez.DistributedLock provides explicit handle-based and callback-based locking contracts backed by Result.

  • TryAcquireAsync(resourceId, [timeout,] ct) -> Task<Result<IAsyncDisposable>>
  • AcquireAsync(resourceId, [timeout,] ct) -> Task<Result<IAsyncDisposable>>
  • TryAcquireHandleAsync(resourceId, [timeout,] ct) -> Task<Result<IDistributedLockHandle>>
  • AcquireHandleAsync(resourceId, [timeout,] ct) -> Task<Result<IDistributedLockHandle>>
  • IDistributedLockHandle : IAsyncDisposable exposes HandleLostToken (CancellationToken), ResourceId, LockId, and long? FencingToken => null.

Published 1.0.0 exposes four canonical error factories on DistributedLockErrors: LockAlreadyHeld, Timeout, LockLost, and Canceled. (DeadlockVictim is staged in unreleased local 2.0.0 / 2.1.0 HEAD.)