Method FindAsync
- Namespace
- MailFathom.Application.Mail.Export
- Assembly
- MailFathom.Application.dll
FindAsync(MailAccountId, MailboxExportId, CancellationToken)
Reads one export of one account.
Task<MailboxExport?> FindAsync(MailAccountId account, MailboxExportId exportId, CancellationToken cancellationToken)
Parameters
accountMailAccountIdThe account the export belongs to.
exportIdMailboxExportIdThe export's identity.
cancellationTokenCancellationTokenCancels the read.
Returns
- Task<MailboxExport>
The export, or null where that account holds none under that identity.
Remarks
The account is part of the question rather than a filter applied afterwards, so an identity minted for another mailbox answers as absent rather than as found.