Table of Contents

Method RecordAppendConfirmedAsync

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

RecordAppendConfirmedAsync(IPersistenceSession, MailDraftId, AppendedMailCopy, CancellationToken)

Writes down what the server said about the copy it accepted.

Task RecordAppendConfirmedAsync(IPersistenceSession session, MailDraftId draftId, AppendedMailCopy copy, CancellationToken cancellationToken)

Parameters

session IPersistenceSession

The session the write joins.

draftId MailDraftId

The draft that was appended.

copy AppendedMailCopy

What the server named, which may name no placement at all.

cancellationToken CancellationToken

Cancels the write.

Returns

Task

A task that completes when the copy is confirmed.

Exceptions

ArgumentNullException

Thrown when session or copy is null.

InvalidOperationException

Thrown when no copy of the current revision is awaiting confirmation.