BotFrameworkConfigurationBuilder.UseHttpClient(HttpClient) 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.
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.