Compartir a través de


BotFrameworkHttpAdapter Constructores

Definición

Sobrecargas

BotFrameworkHttpAdapter(IConfiguration, ILogger<BotFrameworkHttpAdapter>)

Inicializa una nueva instancia de la clase BotFrameworkHttpAdapter.

BotFrameworkHttpAdapter(ICredentialProvider, IChannelProvider, ILogger<BotFrameworkHttpAdapter>)

Inicializa una nueva instancia de la BotFrameworkHttpAdapter clase utilizando un proveedor de credenciales.

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

Inicializa una nueva instancia de la BotFrameworkHttpAdapter clase utilizando un proveedor de credenciales.

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

Inicializa una nueva instancia de la BotFrameworkHttpAdapter clase utilizando un proveedor de credenciales.

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

Inicializa una nueva instancia de la clase BotFrameworkHttpAdapter.

BotFrameworkHttpAdapter(IConfiguration, ILogger<BotFrameworkHttpAdapter>)

Inicializa una nueva instancia de la clase BotFrameworkHttpAdapter.

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

Instancia de IConfiguration.

logger
ILogger<BotFrameworkHttpAdapter>

La implementación de ILogger que debe usar este adaptador.

Se aplica a

BotFrameworkHttpAdapter(ICredentialProvider, IChannelProvider, ILogger<BotFrameworkHttpAdapter>)

Inicializa una nueva instancia de la BotFrameworkHttpAdapter clase utilizando un proveedor de credenciales.

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

Proveedor de credenciales.

channelProvider
IChannelProvider

Proveedor del canal.

logger
ILogger<BotFrameworkHttpAdapter>

La implementación de ILogger que debe usar este adaptador.

Se aplica a

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

Inicializa una nueva instancia de la BotFrameworkHttpAdapter clase utilizando un proveedor de credenciales.

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

Proveedor de credenciales.

channelProvider
IChannelProvider

Proveedor del canal.

httpClient
HttpClient

utilizado HttpClient .

logger
ILogger<BotFrameworkHttpAdapter>

La implementación de ILogger que debe usar este adaptador.

Se aplica a

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

Inicializa una nueva instancia de la BotFrameworkHttpAdapter clase utilizando un proveedor de credenciales.

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

Proveedor de credenciales.

authConfig
AuthenticationConfiguration

Configuración de autenticación.

channelProvider
IChannelProvider

Proveedor del canal.

connectorClientRetryPolicy
Microsoft.Rest.TransientFaultHandling.RetryPolicy

Directiva de reintento para reintentar operaciones HTTP.

customHttpClient
HttpClient

Cliente HTTP.

middleware
IMiddleware

Middleware que se va a agregar inicialmente al adaptador.

logger
ILogger

La implementación de ILogger que debe usar este adaptador.

Excepciones

credentialProvider es null.

Comentarios

Use un MiddlewareSet objeto para agregar varios componentes de middleware en el constructor. Use el método IMiddleware para agregar middleware adicional al adaptador después de la construcción.

Se aplica a

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

Inicializa una nueva instancia de la clase BotFrameworkHttpAdapter.

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

Instancia de IConfiguration.

credentialProvider
ICredentialProvider

Proveedor de credenciales.

authConfig
AuthenticationConfiguration

Configuración de autenticación.

channelProvider
IChannelProvider

Proveedor del canal.

connectorClientRetryPolicy
Microsoft.Rest.TransientFaultHandling.RetryPolicy

Directiva de reintento para reintentar operaciones HTTP.

customHttpClient
HttpClient

Cliente HTTP.

middleware
IMiddleware

Middleware que se va a agregar inicialmente al adaptador.

logger
ILogger

La implementación de ILogger que debe usar este adaptador.

Se aplica a