Method EraseExpiredAsync
- Namespace
- MailFathom.Application.Retrieval.AskMail.Audit
- Assembly
- MailFathom.Application.dll
EraseExpiredAsync(MailAccountId, CancellationToken)
Erases everything in one account's record that has outlived the window it configured.
public Task<int> EraseExpiredAsync(MailAccountId accountId, CancellationToken cancellationToken)
Parameters
accountIdMailAccountIdThe account whose record is aged.
cancellationTokenCancellationTokenCancels the erasure.
Returns
Remarks
It runs whether or not the record is currently on, because an account that has just been switched off still holds the entries written while it was on and those are what the window was configured for. A window of zero or less names no boundary at all and erases nothing, which is what an account this deployment no longer configures reports.