Table of Contents

Method HasExpiredAt

Namespace
MailFathom.Application.Jobs
Assembly
MailFathom.Application.dll

HasExpiredAt(DateTimeOffset)

Reports whether the lease has run out by a given instant.

public bool HasExpiredAt(DateTimeOffset instant)

Parameters

instant DateTimeOffset

The instant to judge the lease at.

Returns

bool

true when the lease no longer holds the job.

Remarks

The expiry instant itself counts as expired, matching the claim statement's own comparison. A lease is judged against the database's clock where it decides a claim; this answers the same question for a caller that has already read the row.