Table of Contents

Method RecordPromotedAsync

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

RecordPromotedAsync(IPersistenceSession, MailDraftId, OutgoingEmailId, CancellationToken)

Writes down the outgoing record a promotion produced for this draft.

Task RecordPromotedAsync(IPersistenceSession session, MailDraftId draftId, OutgoingEmailId outgoingEmailId, CancellationToken cancellationToken)

Parameters

session IPersistenceSession

The session the write joins.

draftId MailDraftId

The draft that was promoted.

outgoingEmailId OutgoingEmailId

The record the send was written down as.

cancellationToken CancellationToken

Cancels the write.

Returns

Task

A task that completes when the draft names the send.

Exceptions

ArgumentNullException

Thrown when session is null.

InvalidOperationException

Thrown when no draft is held under draftId.