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
requestMailResponseDraftRequestThe draft that was asked for.
cancellationTokenCancellationTokenCancels 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
requestis 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.