namespace MaksIT.Dapr.Services.WorkLease;
///
/// Lease document stored in Dapr state for HA work coordination.
///
/// Runtime instance currently holding the lease.
/// When this generation was acquired.
/// When the lease expires if not renewed.
/// Monotonic fencing token; bumped on steal / re-acquire by another holder path.
public sealed record DaprWorkLease(
string HolderId,
DateTimeOffset AcquiredAtUtc,
DateTimeOffset ExpiresAtUtc,
long Generation = 0
);