BotFrameworkHttpAdapter Konstruktory
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Přetížení
BotFrameworkHttpAdapter(IConfiguration, ILogger<BotFrameworkHttpAdapter>)
Inicializuje novou instanci BotFrameworkHttpAdapter třídy.
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)
Parametry
- configuration
- IConfiguration
Instance IConfiguration .
- logger
- ILogger<BotFrameworkHttpAdapter>
Implementace ILoggeru, který by měl tento adaptér používat.
Platí pro
BotFrameworkHttpAdapter(ICredentialProvider, IChannelProvider, ILogger<BotFrameworkHttpAdapter>)
Inicializuje novou instanci BotFrameworkHttpAdapter třídy pomocí zprostředkovatele přihlašovacích údajů.
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)
Parametry
- credentialProvider
- ICredentialProvider
Zprostředkovatel přihlašovacích údajů.
- channelProvider
- IChannelProvider
Poskytovatel kanálu.
- logger
- ILogger<BotFrameworkHttpAdapter>
Implementace ILoggeru, který by měl tento adaptér používat.
Platí pro
BotFrameworkHttpAdapter(ICredentialProvider, IChannelProvider, HttpClient, ILogger<BotFrameworkHttpAdapter>)
Inicializuje novou instanci BotFrameworkHttpAdapter třídy pomocí zprostředkovatele přihlašovacích údajů.
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))
Parametry
- credentialProvider
- ICredentialProvider
Zprostředkovatel přihlašovacích údajů.
- channelProvider
- IChannelProvider
Poskytovatel kanálu.
- httpClient
- HttpClient
Použité HttpClient .
- logger
- ILogger<BotFrameworkHttpAdapter>
Implementace ILoggeru, který by měl tento adaptér používat.
Platí pro
BotFrameworkHttpAdapter(ICredentialProvider, AuthenticationConfiguration, IChannelProvider, RetryPolicy, HttpClient, IMiddleware, ILogger)
Inicializuje novou instanci BotFrameworkHttpAdapter třídy pomocí zprostředkovatele přihlašovacích údajů.
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)
Parametry
- credentialProvider
- ICredentialProvider
Zprostředkovatel přihlašovacích údajů.
- authConfig
- AuthenticationConfiguration
Konfigurace ověřování.
- channelProvider
- IChannelProvider
Poskytovatel kanálu.
- connectorClientRetryPolicy
- Microsoft.Rest.TransientFaultHandling.RetryPolicy
Zásady opakování pro opakování operací HTTP.
- customHttpClient
- HttpClient
Klient HTTP.
- middleware
- IMiddleware
Middleware, který se má na začátku přidat do adaptéru.
- logger
- ILogger
Implementace ILoggeru, který by měl tento adaptér používat.
Výjimky
credentialProvider
je null
.
Poznámky
MiddlewareSet Použijte objekt k přidání více komponent middlewaru v konstruktoru. Použijte metodu IMiddleware k přidání dalšího middlewaru do adaptéru po konstrukci.
Platí pro
BotFrameworkHttpAdapter(IConfiguration, ICredentialProvider, AuthenticationConfiguration, IChannelProvider, RetryPolicy, HttpClient, IMiddleware, ILogger)
Inicializuje novou instanci BotFrameworkHttpAdapter třídy.
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)
Parametry
- configuration
- IConfiguration
Instance IConfiguration .
- credentialProvider
- ICredentialProvider
Zprostředkovatel přihlašovacích údajů.
- authConfig
- AuthenticationConfiguration
Konfigurace ověřování.
- channelProvider
- IChannelProvider
Poskytovatel kanálu.
- connectorClientRetryPolicy
- Microsoft.Rest.TransientFaultHandling.RetryPolicy
Zásady opakování pro opakování operací HTTP.
- customHttpClient
- HttpClient
Klient HTTP.
- middleware
- IMiddleware
Middleware, který se má na začátku přidat do adaptéru.
- logger
- ILogger
Implementace ILoggeru, který by měl tento adaptér používat.