Interface IReplyDraftWriter
- Namespace
- MailFathom.Application.Emails.ReplyDrafts
- Assembly
- MailFathom.Application.dll
Writes a reply out of the correspondence it answers and the way its author writes.
public interface IReplyDraftWriter
Remarks
The port a composer reaches the model through, and the whole of what a provider decides about a reply. It answers with text and with what backs it, so nothing provider-shaped travels beyond this boundary and the message that may eventually be sent is composed by the same authoring a message somebody typed is composed by.
It is registered only where the deployment declared a chat endpoint and turned drafting on, so a caller resolves it optionally and a deployment without one serves a composer somebody writes in themselves rather than a button that fails. That is a registration rather than a branch inside a call: there is no path by which a correspondence leaves an instance whose operator did not ask for this.
Methods
- WriteAsync(ReplyDraftBrief, CancellationToken)
Writes one reply, or answers with nothing where none could be written.