Table of Contents

Method RunAsync

Namespace
MailFathom.Application.Emails.Extraction
Assembly
MailFathom.Application.dll

RunAsync(CancellationToken)

Runs one bounded pass of the backfill.

public Task<StoredEmailExtractionBackfillResult> RunAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Cancels the run between batches and between emails.

Returns

Task<StoredEmailExtractionBackfillResult>

What this run extracted, and whether emails still await extraction.

Exceptions

PersistenceConcurrencyConflictException

Thrown when a competing writer wins a race that the bounded retries could not resolve. Batches already committed stay durable, and the next run resumes from the committed position.

OperationCanceledException

Thrown when the caller cancels. Committed batches stay durable.