Method EraseExpiredAsync
- Namespace
- MailFathom.Application.Mail.Mutations.Audit
- Assembly
- MailFathom.Application.dll
EraseExpiredAsync(MailAccountId, CancellationToken)
Erases everything in one account's trail that has outlived the window it configured.
public Task<int> EraseExpiredAsync(MailAccountId accountId, CancellationToken cancellationToken)
Parameters
accountIdMailAccountIdThe account whose trail is aged.
cancellationTokenCancellationTokenCancels the erasure.
Returns
Remarks
It runs whether or not the trail 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.