Table of Contents

Method SaveAsync

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

SaveAsync(MailDraftRequest, CancellationToken)

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

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

Parameters

request MailDraftRequest

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 does not hold MailDraftsWrite.

MailAccountNotAccessibleException

Thrown when the request names an account this deployment does not serve.

MailDraftRefusedException

Thrown when a recipient names nobody, a field cannot be composed, a bound is exceeded, the account configures no address to send from, or the draft being revised is not one of this account's.