Table of Contents

Method SteerAsync

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

SteerAsync(AgentConversationId, UserId, AgentMessageId, AgentMessageWritten, DateTimeOffset, CancellationToken)

Writes a person's further instruction into the answer being composed, which takes it from its next turn.

Task<AgentMessagePosting> SteerAsync(AgentConversationId id, UserId user, AgentMessageId answer, AgentMessageWritten instruction, DateTimeOffset now, CancellationToken cancellationToken)

Parameters

id AgentConversationId

The conversation holding the answer.

user UserId

The person steering, whose conversation it has to be.

answer AgentMessageId

The answer being steered, which has to be the one being composed.

instruction AgentMessageWritten

What the person added, written by the person.

now DateTimeOffset

The instant it was written, in UTC.

cancellationToken CancellationToken

Cancels the write.

Returns

Task<AgentMessagePosting>

What became of the instruction.

Remarks

It adds and never interrupts: nothing already composed is touched, and the answer goes on from where it stands. An instruction for an answer that has ended writes nothing, because it would otherwise stand in the record as a question nobody answers. A repeated identifier is reported as AlreadyWritten, exactly as a repeated question is.

Exceptions

ArgumentNullException

Thrown when instruction is null.

ArgumentException

Thrown when instruction is not the person's own.