Method ReadAccountsBeyondDeploymentAsync
- Namespace
- MailFathom.Application.SensitiveContent
- Assembly
- MailFathom.Application.dll
ReadAccountsBeyondDeploymentAsync(CancellationToken)
Reads what every account whose own record asks for more than Deployment has its mail scanned under, ordered by account.
Task<IReadOnlyList<MailAccountSensitiveContentPosture>> ReadAccountsBeyondDeploymentAsync(CancellationToken cancellationToken)
Parameters
cancellationTokenCancellationTokenCancels the read.
Returns
- Task<IReadOnlyList<MailAccountSensitiveContentPosture>>
Those accounts with their postures; every account left out is scanned under Deployment.
Remarks
For the one consumer that judges rows belonging to several accounts in one query — the walk that re-derives what was written under a posture nobody runs any more. Naming only the accounts that differ is what keeps that walk's cost following the accounts that opted into something rather than every account the deployment serves. The order is fixed so a value composed from it, such as the configuration a resume position was reached under, does not depend on the order the records were read in. Everything else resolves the account the mail belongs to and calls ForAccountAsync(MailAccountId, CancellationToken).