AddBotApplicationExtensions.AddBotApplication 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.
Overloads
| Name | Description |
|---|---|
| AddBotApplication(IServiceCollection, String) |
Registers the default bot application and its dependencies in the service collection. |
| AddBotApplication<TApp>(IServiceCollection, BotConfig) |
Registers a custom bot application and its dependencies in the service collection. |
| AddBotApplication<TApp>(IServiceCollection, String) |
Registers a custom bot application and its dependencies in the service collection. |
AddBotApplication(IServiceCollection, String)
Registers the default bot application and its dependencies in the service collection.
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddBotApplication(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string sectionName = "AzureAd");
static member AddBotApplication : Microsoft.Extensions.DependencyInjection.IServiceCollection * string -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddBotApplication (services As IServiceCollection, Optional sectionName As String = "AzureAd") As IServiceCollection
Parameters
- services
- IServiceCollection
The service collection to add services to.
- sectionName
- String
The configuration section name containing Azure AD settings. Defaults to "AzureAd".
Returns
The service collection for method chaining.
Applies to
AddBotApplication<TApp>(IServiceCollection, BotConfig)
Registers a custom bot application and its dependencies in the service collection.
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddBotApplication<TApp>(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.Teams.Core.Hosting.BotConfig botConfig) where TApp : Microsoft.Teams.Core.BotApplication;
static member AddBotApplication : Microsoft.Extensions.DependencyInjection.IServiceCollection * Microsoft.Teams.Core.Hosting.BotConfig -> Microsoft.Extensions.DependencyInjection.IServiceCollection (requires 'App :> Microsoft.Teams.Core.BotApplication)
<Extension()>
Public Function AddBotApplication(Of TApp As BotApplication) (services As IServiceCollection, botConfig As BotConfig) As IServiceCollection
Type Parameters
- TApp
The custom bot application type that inherits from BotApplication.
Parameters
- services
- IServiceCollection
The service collection to add services to.
- botConfig
- BotConfig
The configuration containing Azure AD settings.
Returns
The service collection for method chaining.
Applies to
AddBotApplication<TApp>(IServiceCollection, String)
Registers a custom bot application and its dependencies in the service collection.
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddBotApplication<TApp>(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string sectionName = "AzureAd") where TApp : Microsoft.Teams.Core.BotApplication;
static member AddBotApplication : Microsoft.Extensions.DependencyInjection.IServiceCollection * string -> Microsoft.Extensions.DependencyInjection.IServiceCollection (requires 'App :> Microsoft.Teams.Core.BotApplication)
<Extension()>
Public Function AddBotApplication(Of TApp As BotApplication) (services As IServiceCollection, Optional sectionName As String = "AzureAd") As IServiceCollection
Type Parameters
- TApp
The custom bot application type that inherits from BotApplication.
Parameters
- services
- IServiceCollection
The service collection to add services to.
- sectionName
- String
The configuration section name containing Azure AD settings. Defaults to "AzureAd".
Returns
The service collection for method chaining.