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
sessionIPersistenceSessionThe transaction the change commits in.
accountMailAccountIdThe account the message is stored for.
emailStoredEmailIdThe message.
stateLocalEmailStateThe state to write; its source folder is not written, since no local change moves an occurrence.
cancellationTokenCancellationTokenCancels the write.
Returns
- Task
A task that completes once the write is staged in the session.