Method RunAsync
- Namespace
- MailFathom.Application.Emails.ThreadStates
- Assembly
- MailFathom.Application.dll
RunAsync(MailAccountId, CancellationToken)
Takes one bounded pass over the account's conversations awaiting a state.
public Task<ThreadStateDerivationPassReport> RunAsync(MailAccountId account, CancellationToken cancellationToken)
Parameters
accountMailAccountIdThe account whose conversations are derived from.
cancellationTokenCancellationTokenCancels the pass between conversations; committed records stay durable.
Returns
- Task<ThreadStateDerivationPassReport>
How many conversations this pass derived a state for, what stopped it, and whether more remain.
Exceptions
- PersistenceConcurrencyConflictException
Thrown when a competing writer wins a race the bounded retries could not resolve. Records already written stay durable and the next run resumes by asking the same question.
- OperationCanceledException
Thrown when the caller cancels. Committed records stay durable.