Method FindPromotedToAsync
- Namespace
- MailFathom.Application.Mail.Delivery.Drafts
- Assembly
- MailFathom.Application.dll
FindPromotedToAsync(OutgoingEmailId, CancellationToken)
Reads the draft a promotion wrote one outgoing record for.
Task<MailDraftRecord?> FindPromotedToAsync(OutgoingEmailId outgoingEmailId, CancellationToken cancellationToken)
Parameters
outgoingEmailIdOutgoingEmailIdThe record the promotion produced.
cancellationTokenCancellationTokenCancels the read.
Returns
- Task<MailDraftRecord>
The draft, or null when that send came from no draft.
Remarks
It is what turns a delivered send back into the draft it came from, so the copy in the drafts folder goes when the message actually left rather than when somebody asked for it to.