Table of Contents

Method RecordAppendIssuedAsync

Namespace
MailFathom.Application.Mail.Delivery.Drafts
Assembly
MailFathom.Application.dll

RecordAppendIssuedAsync(IPersistenceSession, MailDraftId, MailFolderResolution, DateTimeOffset, CancellationToken)

Writes down that an append of the current revision is about to be issued, before the command goes out.

Task RecordAppendIssuedAsync(IPersistenceSession session, MailDraftId draftId, MailFolderResolution destination, DateTimeOffset appendedAt, CancellationToken cancellationToken)

Parameters

session IPersistenceSession

The session the write joins.

draftId MailDraftId

The draft being appended.

destination MailFolderResolution

The folder binding the copy is appended to.

appendedAt DateTimeOffset

When the append was issued.

cancellationToken CancellationToken

Cancels the write.

Returns

Task

A task that completes when the row is durable.

Exceptions

ArgumentNullException

Thrown when session or destination is null.

InvalidOperationException

Thrown when no draft is held under draftId, or when its current revision was already appended.