Table of Contents

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

session IPersistenceSession

The transaction the change commits in.

account MailAccountId

The account the message is stored for.

email StoredEmailId

The message.

cancellationToken CancellationToken

Cancels the read.

Returns

Task<LocalEmailState>

The state, or null where the account holds no such message.