BotFrameworkHttpClient Constructor
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.
Initializes a new instance of the BotFrameworkHttpClient class.
public BotFrameworkHttpClient (System.Net.Http.HttpClient httpClient, Microsoft.Bot.Connector.Authentication.ICredentialProvider credentialProvider, Microsoft.Bot.Connector.Authentication.IChannelProvider channelProvider = default, Microsoft.Extensions.Logging.ILogger logger = default);
new Microsoft.Bot.Builder.Integration.AspNet.Core.BotFrameworkHttpClient : System.Net.Http.HttpClient * Microsoft.Bot.Connector.Authentication.ICredentialProvider * Microsoft.Bot.Connector.Authentication.IChannelProvider * Microsoft.Extensions.Logging.ILogger -> Microsoft.Bot.Builder.Integration.AspNet.Core.BotFrameworkHttpClient
Public Sub New (httpClient As HttpClient, credentialProvider As ICredentialProvider, Optional channelProvider As IChannelProvider = Nothing, Optional logger As ILogger = Nothing)
Parameters
- httpClient
- HttpClient
A HttpClient.
- credentialProvider
- ICredentialProvider
An instance of ICredentialProvider.
- channelProvider
- IChannelProvider
An instance of IChannelProvider.