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
sessionIPersistenceSessionThe session the write joins.
draftIdMailDraftIdThe draft that was promoted.
outgoingEmailIdOutgoingEmailIdThe record the send was written down as.
cancellationTokenCancellationTokenCancels the write.
Returns
- Task
A task that completes when the draft names the send.
Exceptions
- ArgumentNullException
Thrown when
sessionis null.- InvalidOperationException
Thrown when no draft is held under
draftId.