Method PrepareDraftAsync
- Namespace
- MailFathom.Application.Mail.Delivery.Filing
- Assembly
- MailFathom.Application.dll
PrepareDraftAsync(MailDraftRecord, CancellationToken)
Prepares the local copy of a draft revision written before its account's copy could be filed.
public Task<LocalMailCopy?> PrepareDraftAsync(MailDraftRecord draft, CancellationToken cancellationToken)
Parameters
draftMailDraftRecordThe draft, whose current revision's message is read back from the content store.
cancellationTokenCancellationTokenPropagates caller cancellation.
Returns
- Task<LocalMailCopy>
The prepared copy, or null where no message is stored for the draft or no bound folder plays the drafts role.
Exceptions
- ArgumentNullException
Thrown when
draftis null.