AddBotApplicationExtensions.AddBotHttpClient 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 a named HttpClient wired to bot authentication using an already-resolved BotConfig, without binding it to a typed client. Use this when the client type will be registered separately via a factory.
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddBotHttpClient(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string httpClientName, Microsoft.Teams.Core.Hosting.BotConfig botConfig);
static member AddBotHttpClient : Microsoft.Extensions.DependencyInjection.IServiceCollection * string * Microsoft.Teams.Core.Hosting.BotConfig -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddBotHttpClient (services As IServiceCollection, httpClientName As String, botConfig As BotConfig) As IServiceCollection
Parameters
- services
- IServiceCollection
The service collection to add services to.
- httpClientName
- String
The logical name for this HttpClient registration.
- botConfig
- BotConfig
The resolved bot configuration containing tenant and client settings.
Returns
The service collection for method chaining.