AgentApplication.ResetTypingTimer(ITurnContext) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.