Table of Contents

Method AuthorAsync

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

AuthorAsync(AuthoredResponseRequest, CancellationToken)

Authors one answer to a stored email, or refuses it.

public Task<AuthoredResponse> AuthorAsync(AuthoredResponseRequest request, CancellationToken cancellationToken)

Parameters

request AuthoredResponseRequest

What is being answered, how, and what its author wrote.

cancellationToken CancellationToken

Propagates caller cancellation.

Returns

Task<AuthoredResponse>

The authored answer, or the refusal that stopped it.

Remarks

The grant asked for is the one that reads mail, because reading is what this does: the answer it produces quotes the message it answers and a forward carries that message's files, so anything reaching here without it would read mail by asking to reply to it. Whether the answer may then be sent is the sending path's question, asked where the send happens.

Exceptions

ArgumentNullException

Thrown when request is null.

PrincipalNotAuthorizedException

Thrown when the use case was reached by anything but a caller granted MailRead.