ภาษา

AgentApplication.ResetTypingTimer(ITurnContext) Method

Definition

Reset the typing timer's interval countdown for the current turn, restarting the wait before the next periodic "typing" activity is sent — equivalent to what happens automatically when the agent sends an activity through the normal SendActivityAsync(IActivity, CancellationToken) pipeline.

public void ResetTypingTimer(Microsoft.Agents.Builder.ITurnContext turnContext);
member this.ResetTypingTimer : Microsoft.Agents.Builder.ITurnContext -> unit
Public Sub ResetTypingTimer (turnContext As ITurnContext)

Parameters

turnContext
ITurnContext

The turn context.

Remarks

Call this when a message is delivered out-of-band, bypassing the turn's send pipeline (for example, a channel-specific API call such as Slack's chat.postMessage), so the typing indicator timing stays consistent with pipeline sends. If no typing timer is running for the turn, the call is ignored.

Applies to