ServiceCollectionExtensions.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.
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.