Table of Contents

Method AskAsync

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

AskAsync(AgentConversationId, UserId, AgentMessageId, PresentationText, AgentMessageScope?, CancellationToken)

Asks a question, opening the answer to it and starting the conversation where it is new.

public Task<AgentMessagePosting> AskAsync(AgentConversationId conversation, UserId user, AgentMessageId message, PresentationText text, AgentMessageScope? scope, CancellationToken cancellationToken)

Parameters

conversation AgentConversationId

The conversation, which the client named.

user UserId

The person asking.

message AgentMessageId

The question's identifier, which the client generated so a retried post writes nothing twice.

text PresentationText

What the person asked.

scope AgentMessageScope

What the question was asked about, or null for a question narrowing nothing further.

cancellationToken CancellationToken

Cancels the write.

Returns

Task<AgentMessagePosting>

What became of the question, and the answer — the run — it opened.

Remarks

It returns once the question is written and never waits for the answer: the composition writes into the answer this opens, and a client follows it by reading the conversation from the place this returns.