Application<TState>.OnConfigFetch 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.
Handles config fetch events for Microsoft Teams.
public Microsoft.Teams.AI.Application<TState> OnConfigFetch(Microsoft.Teams.AI.ConfigHandlerAsync<TState> handler);
member this.OnConfigFetch : Microsoft.Teams.AI.ConfigHandlerAsync<'State (requires 'State :> Microsoft.Teams.AI.State.TurnState and 'State : (new : unit -> 'State))> -> Microsoft.Teams.AI.Application<'State (requires 'State :> Microsoft.Teams.AI.State.TurnState and 'State : (new : unit -> 'State))>
Public Function OnConfigFetch (handler As ConfigHandlerAsync(Of TState)) As Application(Of TState)
Parameters
- handler
- ConfigHandlerAsync<TState>
Function to call when the event is triggered.
Returns
The application instance for chaining purposes.