AgentHostExtensions.AddAgentApplicationOptions 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.
Registers AgentApplicationOptions for AgentApplication-based Agents.
public static Microsoft.Extensions.Hosting.IHostApplicationBuilder AddAgentApplicationOptions(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, Microsoft.Agents.Builder.App.UserAuth.AutoSignInSelector autoSignIn = default);
static member AddAgentApplicationOptions : Microsoft.Extensions.Hosting.IHostApplicationBuilder * Microsoft.Agents.Builder.App.UserAuth.AutoSignInSelector -> Microsoft.Extensions.Hosting.IHostApplicationBuilder
<Extension()>
Public Function AddAgentApplicationOptions (builder As IHostApplicationBuilder, Optional autoSignIn As AutoSignInSelector = Nothing) As IHostApplicationBuilder
Parameters
- builder
- IHostApplicationBuilder
- autoSignIn
- AutoSignInSelector
Returns
The same instance of IHostApplicationBuilder to allow for method chaining.
Remarks
This loads options from IConfiguration and DI. The AgentApplicationOptions is added as a singleton.