Class DistributedLockExtensions

Assembly: redb.Tsak.Core.Pro.dll

Convenience extensions over .

public static class DistributedLockExtensions

Inheritance

Object→DistributedLockExtensions

Methods

AcquireAsync(IDistributedLock, string, string, string, int, TimeSpan, CancellationToken)

Attempts to acquire a lock, polling with exponential backoff until either acquired

public static Task<LockResult> AcquireAsync(this IDistributedLock @lock, string lockName, string ownerNodeId, string groupName, int ttlSeconds, TimeSpan waitTimeout, CancellationToken ct = default)