Table of Contents

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

draft MailDraftRecord

The draft, whose current revision's message is read back from the content store.

cancellationToken CancellationToken

Propagates 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 draft is null.