Method FindAsync
- Namespace
- MailFathom.Application.Emails.Summaries
- Assembly
- MailFathom.Application.dll
FindAsync(StoredEmailId, CancellationToken)
Finds one stored email.
Task<EmailSummary?> FindAsync(StoredEmailId storedEmailId, CancellationToken cancellationToken)
Parameters
storedEmailIdStoredEmailIdThe email's stable local identity.
cancellationTokenCancellationTokenPropagates caller cancellation.
Returns
- Task<EmailSummary>
The summary, or null when the local mailbox copy holds no such email.
Remarks
An unknown identifier is an ordinary answer rather than a failure here, so the caller decides what absence means. It is the caller, not the query, that knows whether a missing row is a refusal to publish or a state a walk simply steps over.