Table of Contents

Method RunAsync

Namespace
MailFathom.Application.Emails.AttachmentText
Assembly
MailFathom.Application.dll

RunAsync(MailAccountId, CancellationToken)

Takes one bounded pass over the account's mail awaiting a reading of its attachments.

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

Parameters

account MailAccountId

The account whose mail is read.

cancellationToken CancellationToken

Cancels the pass between messages and between batches; committed readings stay durable.

Returns

Task<MailAttachmentTextPassReport>

How many messages this pass read, and what it left behind.

Exceptions

PersistenceConcurrencyConflictException

Thrown when a competing writer wins a race the bounded retries could not resolve.

OperationCanceledException

Thrown when the caller cancels. Committed readings stay durable.