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
sessionIPersistenceSessionThe transaction the reading is part of, so pending writes of the same session are visible.
accountIdMailAccountIdThe account whose conversations are searched.
identifiersIReadOnlyList<string>The message identifiers to resolve.
cancellationTokenCancellationTokenPropagates caller cancellation.
Returns
- Task<IReadOnlyList<EmailThreadBinding>>
One entry per identifier that is bound, and nothing for the ones that are not.