Interface IMailRuleEvaluationRunStore
- Namespace
- MailFathom.Application.Rules.Evaluation
- Assembly
- MailFathom.Application.dll
Keeps the one whole-mailbox run an account may have outstanding, and the progress an account run makes on it.
public interface IMailRuleEvaluationRunStore
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, MailRuleEvaluationRun, CancellationToken)
Stages a run — a request, a batch's progress, or an ending — in the session it commits through.
- TryStartAsync(IPersistenceSession, MailRuleEvaluationRun, CancellationToken)
Stages a run that is starting, unless the account's row has meanwhile become one it may not replace.