Interface ISpamClassificationRunStore
- Namespace
- MailFathom.Application.Spam.Runs
- Assembly
- MailFathom.Application.dll
Keeps the one whole-mailbox classification run an account may have outstanding, and the progress made on it.
public interface ISpamClassificationRunStore
Methods
- FindLatestAsync(MailAccountId, CancellationToken)
Reads the run this account last had, whether it is still outstanding or has ended.
- FindOutstandingAsync(MailAccountId, CancellationToken)
Reads the run this account is still waiting to have carried further.
- SaveAsync(IPersistenceSession, SpamClassificationRun, CancellationToken)
Stages a run — a request, a batch's progress, or an ending — in the session it commits through.