Method ReadAsync
- Namespace
- MailFathom.Application.Mail.Mutations.Local
- Assembly
- MailFathom.Application.dll
ReadAsync(IPersistenceSession, MailAccountId, StoredEmailId, CancellationToken)
Reads where a stored message is and the flags and keywords it carries.
Task<LocalEmailState?> ReadAsync(IPersistenceSession session, MailAccountId account, StoredEmailId email, CancellationToken cancellationToken)
Parameters
sessionIPersistenceSessionThe transaction the change commits in.
accountMailAccountIdThe account the message is stored for.
emailStoredEmailIdThe message.
cancellationTokenCancellationTokenCancels the read.
Returns
- Task<LocalEmailState>
The state, or null where the account holds no such message.