Table of Contents

Method CollectFromAsync

Namespace
MailFathom.Application.Contacts.Collection
Assembly
MailFathom.Application.dll

CollectFromAsync(ExtractedEmailMetadata, ContactCollectionRun, CancellationToken)

Records whoever one committed message says the account corresponds with.

public Task CollectFromAsync(ExtractedEmailMetadata metadata, ContactCollectionRun run, CancellationToken cancellationToken)

Parameters

metadata ExtractedEmailMetadata

What was read out of the message that was just stored.

run ContactCollectionRun

The folder role and the remaining bound of the run the message reached this pass in.

cancellationToken CancellationToken

Cancels the collection.

Returns

Task

A task that completes once every candidate has been decided, or at once where the account collects nothing.

Remarks

An account with collection switched off performs one property read and reaches neither the book nor the tally, which is the shape every switched-off feature in this system has.

Exceptions

ArgumentNullException

Thrown when a required argument is null.