Table of Contents

Interface IRecoveryLeaderElector

Namespace
Virtufin.WorkManager.Services
Assembly
Virtufin.WorkManager.dll

Abstraction over the leader-election primitive. Allows the hosted service to be unit-tested without touching a real Dapr state store.

public interface IRecoveryLeaderElector

Methods

ReleaseLeaseAsync()

Task ReleaseLeaseAsync()

Returns

Task

TryAcquireLeaseAsync(CancellationToken)

Task<bool> TryAcquireLeaseAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Returns

Task<bool>