BotFrameworkConfigurationBuilder.UseHttpClient(HttpClient) Method

Definition

Sets the HttpClient instance that will be used to make Bot Framework Service calls.

public Microsoft.Bot.Builder.Integration.AspNet.WebApi.BotFrameworkConfigurationBuilder UseHttpClient (System.Net.Http.HttpClient httpClient);
member this.UseHttpClient : System.Net.Http.HttpClient -> Microsoft.Bot.Builder.Integration.AspNet.WebApi.BotFrameworkConfigurationBuilder
Public Function UseHttpClient (httpClient As HttpClient) As BotFrameworkConfigurationBuilder

Parameters

httpClient
HttpClient

The HttpClient to be used when calling the Bot Framework Service.

Returns

BotFrameworkConfigurationBuilder instance with the HttpClient set.

Applies to