BotFrameworkHttpAdapter Construtores
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Sobrecargas
BotFrameworkHttpAdapter(IConfiguration, ILogger<BotFrameworkHttpAdapter>) |
Inicializa uma nova instância da BotFrameworkHttpAdapter classe. |
BotFrameworkHttpAdapter(ICredentialProvider, IChannelProvider, ILogger<BotFrameworkHttpAdapter>) |
Inicializa uma nova instância da BotFrameworkHttpAdapter classe com um fornecedor de credenciais. |
BotFrameworkHttpAdapter(ICredentialProvider, IChannelProvider, HttpClient, ILogger<BotFrameworkHttpAdapter>) |
Inicializa uma nova instância da BotFrameworkHttpAdapter classe com um fornecedor de credenciais. |
BotFrameworkHttpAdapter(ICredentialProvider, AuthenticationConfiguration, IChannelProvider, RetryPolicy, HttpClient, IMiddleware, ILogger) |
Inicializa uma nova instância da BotFrameworkHttpAdapter classe com um fornecedor de credenciais. |
BotFrameworkHttpAdapter(IConfiguration, ICredentialProvider, AuthenticationConfiguration, IChannelProvider, RetryPolicy, HttpClient, IMiddleware, ILogger) |
Inicializa uma nova instância da BotFrameworkHttpAdapter classe. |
BotFrameworkHttpAdapter(IConfiguration, ILogger<BotFrameworkHttpAdapter>)
Inicializa uma nova instância da BotFrameworkHttpAdapter classe.
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)
Parâmetros
- configuration
- IConfiguration
Uma IConfiguration instância.
- logger
- ILogger<BotFrameworkHttpAdapter>
A implementação do ILogger que este adaptador deve utilizar.
Aplica-se a
BotFrameworkHttpAdapter(ICredentialProvider, IChannelProvider, ILogger<BotFrameworkHttpAdapter>)
Inicializa uma nova instância da BotFrameworkHttpAdapter classe com um fornecedor de credenciais.
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)
Parâmetros
- credentialProvider
- ICredentialProvider
O fornecedor de credenciais.
- channelProvider
- IChannelProvider
O fornecedor de canais.
- logger
- ILogger<BotFrameworkHttpAdapter>
A implementação do ILogger que este adaptador deve utilizar.
Aplica-se a
BotFrameworkHttpAdapter(ICredentialProvider, IChannelProvider, HttpClient, ILogger<BotFrameworkHttpAdapter>)
Inicializa uma nova instância da BotFrameworkHttpAdapter classe com um fornecedor de credenciais.
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))
Parâmetros
- credentialProvider
- ICredentialProvider
O fornecedor de credenciais.
- channelProvider
- IChannelProvider
O fornecedor de canais.
- httpClient
- HttpClient
O HttpClient utilizado.
- logger
- ILogger<BotFrameworkHttpAdapter>
A implementação do ILogger que este adaptador deve utilizar.
Aplica-se a
BotFrameworkHttpAdapter(ICredentialProvider, AuthenticationConfiguration, IChannelProvider, RetryPolicy, HttpClient, IMiddleware, ILogger)
Inicializa uma nova instância da BotFrameworkHttpAdapter classe com um fornecedor de credenciais.
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)
Parâmetros
- credentialProvider
- ICredentialProvider
O fornecedor de credenciais.
- authConfig
- AuthenticationConfiguration
A configuração de autenticação.
- channelProvider
- IChannelProvider
O fornecedor de canais.
- connectorClientRetryPolicy
- Microsoft.Rest.TransientFaultHandling.RetryPolicy
Repita a política para repetir operações HTTP.
- customHttpClient
- HttpClient
O cliente HTTP.
- middleware
- IMiddleware
O middleware a adicionar inicialmente ao adaptador.
- logger
- ILogger
A implementação do ILogger que este adaptador deve utilizar.
Exceções
credentialProvider
é null
.
Observações
Utilize um MiddlewareSet objeto para adicionar vários componentes middleware no construtor. Utilize o método IMiddleware para adicionar middleware adicional ao adaptador após a construção.
Aplica-se a
BotFrameworkHttpAdapter(IConfiguration, ICredentialProvider, AuthenticationConfiguration, IChannelProvider, RetryPolicy, HttpClient, IMiddleware, ILogger)
Inicializa uma nova instância da BotFrameworkHttpAdapter classe.
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)
Parâmetros
- configuration
- IConfiguration
Uma IConfiguration instância.
- credentialProvider
- ICredentialProvider
O fornecedor de credenciais.
- authConfig
- AuthenticationConfiguration
A configuração de autenticação.
- channelProvider
- IChannelProvider
O fornecedor de canais.
- connectorClientRetryPolicy
- Microsoft.Rest.TransientFaultHandling.RetryPolicy
Repita a política para repetir operações HTTP.
- customHttpClient
- HttpClient
O cliente HTTP.
- middleware
- IMiddleware
O middleware a adicionar inicialmente ao adaptador.
- logger
- ILogger
A implementação do ILogger que este adaptador deve utilizar.