Table of Contents

Method FindBindingsAsync

Namespace
MailFathom.Application.Emails.Threads
Assembly
MailFathom.Application.dll

FindBindingsAsync(IPersistenceSession, MailAccountId, IReadOnlyList<string>, CancellationToken)

Reads which of the given identifiers this account already binds to a conversation.

Task<IReadOnlyList<EmailThreadBinding>> FindBindingsAsync(IPersistenceSession session, MailAccountId accountId, IReadOnlyList<string> identifiers, CancellationToken cancellationToken)

Parameters

session IPersistenceSession

The transaction the reading is part of, so pending writes of the same session are visible.

accountId MailAccountId

The account whose conversations are searched.

identifiers IReadOnlyList<string>

The message identifiers to resolve.

cancellationToken CancellationToken

Propagates caller cancellation.

Returns

Task<IReadOnlyList<EmailThreadBinding>>

One entry per identifier that is bound, and nothing for the ones that are not.