BotFrameworkHttpAdapter Constructors

Definition

Overloads

BotFrameworkHttpAdapter(IConfiguration, ILogger<BotFrameworkHttpAdapter>)

Initializes a new instance of the BotFrameworkHttpAdapter class.

BotFrameworkHttpAdapter(ICredentialProvider, IChannelProvider, ILogger<BotFrameworkHttpAdapter>)

Initializes a new instance of the BotFrameworkHttpAdapter class, using a credential provider.

BotFrameworkHttpAdapter(ICredentialProvider, IChannelProvider, HttpClient, ILogger<BotFrameworkHttpAdapter>)

Initializes a new instance of the BotFrameworkHttpAdapter class, using a credential provider.

BotFrameworkHttpAdapter(ICredentialProvider, AuthenticationConfiguration, IChannelProvider, RetryPolicy, HttpClient, IMiddleware, ILogger)

Initializes a new instance of the BotFrameworkHttpAdapter class, using a credential provider.

BotFrameworkHttpAdapter(IConfiguration, ICredentialProvider, AuthenticationConfiguration, IChannelProvider, RetryPolicy, HttpClient, IMiddleware, ILogger)

Initializes a new instance of the BotFrameworkHttpAdapter class.

BotFrameworkHttpAdapter(IConfiguration, ILogger<BotFrameworkHttpAdapter>)

Initializes a new instance of the BotFrameworkHttpAdapter class.

protected BotFrameworkHttpAdapter (Microsoft.Extensions.Configuration.IConfiguration configuration, Microsoft.Extensions.Logging.ILogger<Microsoft.Bot.Builder.Integration.AspNet.Core.BotFrameworkHttpAdapter> logger = default);
new Microsoft.Bot.Builder.Integration.AspNet.Core.BotFrameworkHttpAdapter : Microsoft.Extensions.Configuration.IConfiguration * Microsoft.Extensions.Logging.ILogger<Microsoft.Bot.Builder.Integration.AspNet.Core.BotFrameworkHttpAdapter> -> Microsoft.Bot.Builder.Integration.AspNet.Core.BotFrameworkHttpAdapter
Protected Sub New (configuration As IConfiguration, Optional logger As ILogger(Of BotFrameworkHttpAdapter) = Nothing)

Parameters

configuration
IConfiguration

An IConfiguration instance.

logger
ILogger<BotFrameworkHttpAdapter>

The ILogger implementation this adapter should use.

Applies to

BotFrameworkHttpAdapter(ICredentialProvider, IChannelProvider, ILogger<BotFrameworkHttpAdapter>)

Initializes a new instance of the BotFrameworkHttpAdapter class, using a credential provider.

public BotFrameworkHttpAdapter (Microsoft.Bot.Connector.Authentication.ICredentialProvider credentialProvider = default, Microsoft.Bot.Connector.Authentication.IChannelProvider channelProvider = default, Microsoft.Extensions.Logging.ILogger<Microsoft.Bot.Builder.Integration.AspNet.Core.BotFrameworkHttpAdapter> logger = default);
new Microsoft.Bot.Builder.Integration.AspNet.Core.BotFrameworkHttpAdapter : Microsoft.Bot.Connector.Authentication.ICredentialProvider * Microsoft.Bot.Connector.Authentication.IChannelProvider * Microsoft.Extensions.Logging.ILogger<Microsoft.Bot.Builder.Integration.AspNet.Core.BotFrameworkHttpAdapter> -> Microsoft.Bot.Builder.Integration.AspNet.Core.BotFrameworkHttpAdapter
Public Sub New (Optional credentialProvider As ICredentialProvider = Nothing, Optional channelProvider As IChannelProvider = Nothing, Optional logger As ILogger(Of BotFrameworkHttpAdapter) = Nothing)

Parameters

credentialProvider
ICredentialProvider

The credential provider.

channelProvider
IChannelProvider

The channel provider.

logger
ILogger<BotFrameworkHttpAdapter>

The ILogger implementation this adapter should use.

Applies to

BotFrameworkHttpAdapter(ICredentialProvider, IChannelProvider, HttpClient, ILogger<BotFrameworkHttpAdapter>)

Initializes a new instance of the BotFrameworkHttpAdapter class, using a credential provider.

public BotFrameworkHttpAdapter (Microsoft.Bot.Connector.Authentication.ICredentialProvider credentialProvider, Microsoft.Bot.Connector.Authentication.IChannelProvider channelProvider, System.Net.Http.HttpClient httpClient, Microsoft.Extensions.Logging.ILogger<Microsoft.Bot.Builder.Integration.AspNet.Core.BotFrameworkHttpAdapter> logger);
new Microsoft.Bot.Builder.Integration.AspNet.Core.BotFrameworkHttpAdapter : Microsoft.Bot.Connector.Authentication.ICredentialProvider * Microsoft.Bot.Connector.Authentication.IChannelProvider * System.Net.Http.HttpClient * Microsoft.Extensions.Logging.ILogger<Microsoft.Bot.Builder.Integration.AspNet.Core.BotFrameworkHttpAdapter> -> Microsoft.Bot.Builder.Integration.AspNet.Core.BotFrameworkHttpAdapter
Public Sub New (credentialProvider As ICredentialProvider, channelProvider As IChannelProvider, httpClient As HttpClient, logger As ILogger(Of BotFrameworkHttpAdapter))

Parameters

credentialProvider
ICredentialProvider

The credential provider.

channelProvider
IChannelProvider

The channel provider.

httpClient
HttpClient

The HttpClient used.

logger
ILogger<BotFrameworkHttpAdapter>

The ILogger implementation this adapter should use.

Applies to

BotFrameworkHttpAdapter(ICredentialProvider, AuthenticationConfiguration, IChannelProvider, RetryPolicy, HttpClient, IMiddleware, ILogger)

Initializes a new instance of the BotFrameworkHttpAdapter class, using a credential provider.

public BotFrameworkHttpAdapter (Microsoft.Bot.Connector.Authentication.ICredentialProvider credentialProvider, Microsoft.Bot.Connector.Authentication.AuthenticationConfiguration authConfig, Microsoft.Bot.Connector.Authentication.IChannelProvider channelProvider = default, Microsoft.Rest.TransientFaultHandling.RetryPolicy connectorClientRetryPolicy = default, System.Net.Http.HttpClient customHttpClient = default, Microsoft.Bot.Builder.IMiddleware middleware = default, Microsoft.Extensions.Logging.ILogger logger = default);
new Microsoft.Bot.Builder.Integration.AspNet.Core.BotFrameworkHttpAdapter : Microsoft.Bot.Connector.Authentication.ICredentialProvider * Microsoft.Bot.Connector.Authentication.AuthenticationConfiguration * Microsoft.Bot.Connector.Authentication.IChannelProvider * Microsoft.Rest.TransientFaultHandling.RetryPolicy * System.Net.Http.HttpClient * Microsoft.Bot.Builder.IMiddleware * Microsoft.Extensions.Logging.ILogger -> Microsoft.Bot.Builder.Integration.AspNet.Core.BotFrameworkHttpAdapter
Public Sub New (credentialProvider As ICredentialProvider, authConfig As AuthenticationConfiguration, Optional channelProvider As IChannelProvider = Nothing, Optional connectorClientRetryPolicy As RetryPolicy = Nothing, Optional customHttpClient As HttpClient = Nothing, Optional middleware As IMiddleware = Nothing, Optional logger As ILogger = Nothing)

Parameters

credentialProvider
ICredentialProvider

The credential provider.

authConfig
AuthenticationConfiguration

The authentication configuration.

channelProvider
IChannelProvider

The channel provider.

connectorClientRetryPolicy
Microsoft.Rest.TransientFaultHandling.RetryPolicy

Retry policy for retrying HTTP operations.

customHttpClient
HttpClient

The HTTP client.

middleware
IMiddleware

The middleware to initially add to the adapter.

logger
ILogger

The ILogger implementation this adapter should use.

Exceptions

credentialProvider is null.

Remarks

Use a MiddlewareSet object to add multiple middleware components in the constructor. Use the IMiddleware method to add additional middleware to the adapter after construction.

Applies to

BotFrameworkHttpAdapter(IConfiguration, ICredentialProvider, AuthenticationConfiguration, IChannelProvider, RetryPolicy, HttpClient, IMiddleware, ILogger)

Initializes a new instance of the BotFrameworkHttpAdapter class.

protected BotFrameworkHttpAdapter (Microsoft.Extensions.Configuration.IConfiguration configuration, Microsoft.Bot.Connector.Authentication.ICredentialProvider credentialProvider, Microsoft.Bot.Connector.Authentication.AuthenticationConfiguration authConfig = default, Microsoft.Bot.Connector.Authentication.IChannelProvider channelProvider = default, Microsoft.Rest.TransientFaultHandling.RetryPolicy connectorClientRetryPolicy = default, System.Net.Http.HttpClient customHttpClient = default, Microsoft.Bot.Builder.IMiddleware middleware = default, Microsoft.Extensions.Logging.ILogger logger = default);
new Microsoft.Bot.Builder.Integration.AspNet.Core.BotFrameworkHttpAdapter : Microsoft.Extensions.Configuration.IConfiguration * Microsoft.Bot.Connector.Authentication.ICredentialProvider * Microsoft.Bot.Connector.Authentication.AuthenticationConfiguration * Microsoft.Bot.Connector.Authentication.IChannelProvider * Microsoft.Rest.TransientFaultHandling.RetryPolicy * System.Net.Http.HttpClient * Microsoft.Bot.Builder.IMiddleware * Microsoft.Extensions.Logging.ILogger -> Microsoft.Bot.Builder.Integration.AspNet.Core.BotFrameworkHttpAdapter
Protected Sub New (configuration As IConfiguration, credentialProvider As ICredentialProvider, Optional authConfig As AuthenticationConfiguration = Nothing, Optional channelProvider As IChannelProvider = Nothing, Optional connectorClientRetryPolicy As RetryPolicy = Nothing, Optional customHttpClient As HttpClient = Nothing, Optional middleware As IMiddleware = Nothing, Optional logger As ILogger = Nothing)

Parameters

configuration
IConfiguration

An IConfiguration instance.

credentialProvider
ICredentialProvider

The credential provider.

authConfig
AuthenticationConfiguration

The authentication configuration.

channelProvider
IChannelProvider

The channel provider.

connectorClientRetryPolicy
Microsoft.Rest.TransientFaultHandling.RetryPolicy

Retry policy for retrying HTTP operations.

customHttpClient
HttpClient

The HTTP client.

middleware
IMiddleware

The middleware to initially add to the adapter.

logger
ILogger

The ILogger implementation this adapter should use.

Applies to