Lingua

ServiceCollectionExtensions.AddAgentApplicationOptions Method

Definition

Adds the required agent application options and, optionally, an auto sign-in selector to the service collection.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddAgentApplicationOptions(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.Agents.Builder.App.UserAuth.AutoSignInSelector autoSignIn = default, bool replaceExisting = true);
static member AddAgentApplicationOptions : Microsoft.Extensions.DependencyInjection.IServiceCollection * Microsoft.Agents.Builder.App.UserAuth.AutoSignInSelector * bool -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddAgentApplicationOptions (services As IServiceCollection, Optional autoSignIn As AutoSignInSelector = Nothing, Optional replaceExisting As Boolean = true) As IServiceCollection

Parameters

services
IServiceCollection

The service collection to which the agent application options and auto sign-in selector are added.

autoSignIn
AutoSignInSelector

An optional delegate used to select the auto sign-in behavior. If provided, it is registered as a singleton service.

replaceExisting
Boolean

If true, replaces existing registrations of the agent application options and auto sign-in selector.

Returns

Applies to