Method RunAsync
- Namespace
- MailFathom.Application.Agent.Answering
- Assembly
- MailFathom.Application.dll
RunAsync(AgentQuestion, CancellationToken)
Composes the answer to one question and leaves it ended.
public Task RunAsync(AgentQuestion question, CancellationToken cancellationToken)
Parameters
questionAgentQuestionThe question the conversation recorded, and the answer it opened.
cancellationTokenCancellationTokenEnds the run when the process is stopping.
Returns
- Task
A task that completes once the answer has ended.
Remarks
A failure this use case has a name for ends the answer as failed and is not raised; one it does not is raised after the answer has been ended, so the caller can report it without leaving the conversation composing forever. A stop the person recorded writes nothing here, the store having already ended the answer with the stop.
Exceptions
- ArgumentNullException
Thrown when
questionis null.