Compartir a través de


BotFrameworkAdapter Constructores

Definición

Sobrecargas

BotFrameworkAdapter(ICredentialProvider, IChannelProvider, RetryPolicy, HttpClient, IMiddleware, ILogger)

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

BotFrameworkAdapter(AppCredentials, AuthenticationConfiguration, IChannelProvider, RetryPolicy, HttpClient, IMiddleware, ILogger)

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

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

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

BotFrameworkAdapter(ICredentialProvider, IChannelProvider, RetryPolicy, HttpClient, IMiddleware, ILogger)

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

public BotFrameworkAdapter (Microsoft.Bot.Connector.Authentication.ICredentialProvider credentialProvider, 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.BotFrameworkAdapter : Microsoft.Bot.Connector.Authentication.ICredentialProvider * Microsoft.Bot.Connector.Authentication.IChannelProvider * Microsoft.Rest.TransientFaultHandling.RetryPolicy * System.Net.Http.HttpClient * Microsoft.Bot.Builder.IMiddleware * Microsoft.Extensions.Logging.ILogger -> Microsoft.Bot.Builder.BotFrameworkAdapter
Public Sub New (credentialProvider As ICredentialProvider, 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.

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 Use(IMiddleware) método para agregar middleware adicional al adaptador después de la construcción.

Se aplica a

BotFrameworkAdapter(AppCredentials, AuthenticationConfiguration, IChannelProvider, RetryPolicy, HttpClient, IMiddleware, ILogger)

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

public BotFrameworkAdapter (Microsoft.Bot.Connector.Authentication.AppCredentials credentials, 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.BotFrameworkAdapter : Microsoft.Bot.Connector.Authentication.AppCredentials * 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.BotFrameworkAdapter
Public Sub New (credentials As AppCredentials, 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

credentials
AppCredentials

Credenciales que se usarán para la adquisición de tokens.

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

throw ArgumentNullException.

Comentarios

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

Se aplica a

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

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

public BotFrameworkAdapter (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.BotFrameworkAdapter : 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.BotFrameworkAdapter
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 Use(IMiddleware) método para agregar middleware adicional al adaptador después de la construcción.

Se aplica a