AgentApplication.StopTypingTimer Method

Definition

Overloads

Name Description
StopTypingTimer(ITurnContext)

Manually stop the typing timer for the current turn.

StopTypingTimer()
Obsolete.

Manually stop the typing timer.

StopTypingTimer(ITurnContext)

Manually stop the typing timer for the current turn.

public System.Threading.Tasks.Task StopTypingTimer(Microsoft.Agents.Builder.ITurnContext turnContext);
member this.StopTypingTimer : Microsoft.Agents.Builder.ITurnContext -> System.Threading.Tasks.Task
Public Function StopTypingTimer (turnContext As ITurnContext) As Task

Parameters

turnContext
ITurnContext

The turn context.

Returns

Remarks

Stops the typing worker immediately and waits for it to finish. Subsequent calls for the same turn are no-ops. The worker is also stopped automatically at end of turn.

Applies to

StopTypingTimer()

Caution

Use StopTypingTimer(ITurnContext) instead.

Manually stop the typing timer.

[System.Obsolete("Use StopTypingTimer(ITurnContext) instead.")]
public void StopTypingTimer();
[<System.Obsolete("Use StopTypingTimer(ITurnContext) instead.")>]
member this.StopTypingTimer : unit -> unit
Public Sub StopTypingTimer ()
Attributes

Remarks

If the timer isn't running nothing happens. Per-turn workers are definitively stopped in the turn's finally block via DisposeAsync.

Applies to