Table of Contents

Method RunAsync

Namespace
MailFathom.Application.Emails.Enrichment
Assembly
MailFathom.Application.dll

RunAsync(MailAccountId, CancellationToken)

Takes one bounded pass over the account's mail awaiting a derivation.

public Task<MailEnrichmentPassReport> RunAsync(MailAccountId account, CancellationToken cancellationToken)

Parameters

account MailAccountId

The account whose mail is derived from.

cancellationToken CancellationToken

Cancels the pass between messages; committed records stay durable.

Returns

Task<MailEnrichmentPassReport>

How many messages this pass derived from, 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.