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
metadataExtractedEmailMetadataWhat was read out of the message that was just stored.
runContactCollectionRunThe folder role and the remaining bound of the run the message reached this pass in.
cancellationTokenCancellationTokenCancels 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.