AgentApplication.ConfigureExtensions 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.
Called during construction after route attributes are applied.
Override (via source-generated code from AgentExtensionAttribute) to eagerly
initialize agent extensions so their OnBeforeTurn handlers and other
infrastructure are registered before the first turn arrives.
protected virtual void ConfigureExtensions();
abstract member ConfigureExtensions : unit -> unit
override this.ConfigureExtensions : unit -> unit
Protected Overridable Sub ConfigureExtensions ()
Remarks
This method is called from the AgentApplication constructor via virtual dispatch, so derived-class constructor bodies have not yet run when it executes. Overrides must only depend on state initialized by AgentApplication itself (e.g., Options, storage, and routing infrastructure) and must not access fields or properties set in a derived constructor body.