BotConfig.Resolve(IServiceCollection, String) 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.
Resolves a BotConfig from a service collection by extracting configuration and logger.
public static Microsoft.Teams.Core.Hosting.BotConfig Resolve(Microsoft.Extensions.DependencyInjection.IServiceCollection services, string sectionName = "AzureAd");
static member Resolve : Microsoft.Extensions.DependencyInjection.IServiceCollection * string -> Microsoft.Teams.Core.Hosting.BotConfig
Public Shared Function Resolve (services As IServiceCollection, Optional sectionName As String = "AzureAd") As BotConfig
Parameters
- services
- IServiceCollection
The service collection containing IConfiguration and ILoggerFactory registrations.
- sectionName
- String
The configuration section name. Defaults to "AzureAd".
Returns
A BotConfig populated from the section, or an empty BotConfig if no ClientId is configured.