Table of Contents

Constructor AgentMessageWritten

Namespace
MailFathom.Application.Agent.Conversations
Assembly
MailFathom.Application.dll

AgentMessageWritten(AgentMessageId, AgentMessageAuthor, PresentationText, AgentMessageScope?)

Somebody wrote a message: the person asking, or the agent saying something in its own words.

public AgentMessageWritten(AgentMessageId MessageId, AgentMessageAuthor Author, PresentationText Text, AgentMessageScope? Scope)

Parameters

MessageId AgentMessageId

The message being written, which the client generated so that a post retried over a dropped connection creates no second one.

Author AgentMessageAuthor

Who wrote it.

Text PresentationText

What they wrote.

Scope AgentMessageScope

What the question was asked about, and null for a message of the agent's own.

Remarks

One entry for both authors, because a message is the same record whoever wrote it: a line of text placed in the conversation's order. What differs is that a person's message says what it was asked about and the agent's says nothing of the kind — the agent answers under the scope it was given rather than choosing one.

The agent writes one of these for a run that was cut short, saying so and that what arrived stays. It is a message rather than a mark on the answer it followed, because it is the agent speaking about the run rather than part of what the run composed, and the person is expected to say where to pick it up.

An answer the agent composes is not written this way: it opens with AgentAnswerStarted and says what it has to say in blocks. That is the settled shape — an answer is a presentation plan rather than prose — and it is why this entry carries text and no blocks.

Exceptions

ArgumentOutOfRangeException

Thrown when Author is not a declared member.

ArgumentException

Thrown when Text is the unspecified struct default.