Table of Contents

Method WriteAsync

Namespace
MailFathom.Application.Mail.Mutations.Local
Assembly
MailFathom.Application.dll

WriteAsync(IPersistenceSession, MailAccountId, StoredEmailId, LocalEmailState, CancellationToken)

Writes the local folder, the flags, and the keywords a change left the message with.

Task WriteAsync(IPersistenceSession session, MailAccountId account, StoredEmailId email, LocalEmailState state, CancellationToken cancellationToken)

Parameters

session IPersistenceSession

The transaction the change commits in.

account MailAccountId

The account the message is stored for.

email StoredEmailId

The message.

state LocalEmailState

The state to write; its source folder is not written, since no local change moves an occurrence.

cancellationToken CancellationToken

Cancels the write.

Returns

Task

A task that completes once the write is staged in the session.