Method FindContentAsync
- Namespace
- MailFathom.Application.Mail.Delivery.Filing
- Assembly
- MailFathom.Application.dll
FindContentAsync(IEmailContentStore, CancellationToken)
Reads the bytes this source names.
public Task<StoredEmailContent?> FindContentAsync(IEmailContentStore contentStore, CancellationToken cancellationToken)
Parameters
contentStoreIEmailContentStoreThe port every piece of raw MIME is held behind.
cancellationTokenCancellationTokenCancels the read.
Returns
- Task<StoredEmailContent>
The stored message, or null when none is stored under this source.
Exceptions
- ArgumentNullException
Thrown when
contentStoreis null.