Share via


AgentApplication.OnAfterTurn(TurnEventHandler) Method

Definition

Add a handler that will execute after the turn's activity handler logic is processed.
Handler returns true to finish execution of the current turn. Handler returning false prevents the Agents state from being saved.

public Microsoft.Agents.Builder.App.AgentApplication OnAfterTurn(Microsoft.Agents.Builder.App.TurnEventHandler handler);
member this.OnAfterTurn : Microsoft.Agents.Builder.App.TurnEventHandler -> Microsoft.Agents.Builder.App.AgentApplication
Public Function OnAfterTurn (handler As TurnEventHandler) As AgentApplication

Parameters

handler
TurnEventHandler

Function to call after turn execution.

Returns

The application instance for chaining purposes.

Applies to