Table of Contents

Method SaveAsync

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

SaveAsync(MailResponseDraftRequest, CancellationToken)

Holds one answer to a stored email as a draft, or refuses it naming what the caller has to change.

public Task<MailDraftRecord> SaveAsync(MailResponseDraftRequest request, CancellationToken cancellationToken)

Parameters

request MailResponseDraftRequest

The draft that was asked for.

cancellationToken CancellationToken

Cancels the reads and the writes.

Returns

Task<MailDraftRecord>

The draft as it stands once the mailbox has been brought into step with it.

Exceptions

ArgumentNullException

Thrown when request is null.

PrincipalNotAuthorizedException

Thrown when the caller holds neither MailDraftsWrite nor, beneath it, MailRead.

MailDraftRefusedException

Thrown when the answered email cannot be answered, a recipient the author added names nobody, a field cannot be composed, a bound is exceeded, or the draft being revised is not one of that account's.