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
instantDateTimeOffsetThe instant to judge the lease at.
Returns
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.