AgentApplication.OnAfterTurn(TurnEventHandler) 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.
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.