BotFrameworkAdapter 构造函数

定义

重载

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

使用凭据提供程序初始化 类的新实例 BotFrameworkAdapter

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

使用凭据提供程序初始化 类的新实例 BotFrameworkAdapter

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

使用凭据提供程序初始化 类的新实例 BotFrameworkAdapter

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

使用凭据提供程序初始化 类的新实例 BotFrameworkAdapter

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)

参数

credentialProvider
ICredentialProvider

凭据提供程序。

channelProvider
IChannelProvider

通道提供程序。

connectorClientRetryPolicy
Microsoft.Rest.TransientFaultHandling.RetryPolicy

用于重试 HTTP 操作的重试策略。

customHttpClient
HttpClient

HTTP 客户端。

middleware
IMiddleware

要最初添加到适配器的中间件。

logger
ILogger

此适配器应使用的 ILogger 实现。

例外

credentialProvidernull

注解

MiddlewareSet使用 对象在构造函数中添加多个中间件组件。 使用 方法在 Use(IMiddleware) 构造后向适配器添加其他中间件。

适用于

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

使用凭据提供程序初始化 类的新实例 BotFrameworkAdapter

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)

参数

credentials
AppCredentials

用于获取令牌的凭据。

authConfig
AuthenticationConfiguration

身份验证配置。

channelProvider
IChannelProvider

通道提供程序。

connectorClientRetryPolicy
Microsoft.Rest.TransientFaultHandling.RetryPolicy

用于重试 HTTP 操作的重试策略。

customHttpClient
HttpClient

HTTP 客户端。

middleware
IMiddleware

要最初添加到适配器的中间件。

logger
ILogger

此适配器应使用的 ILogger 实现。

例外

throw ArgumentNullException。

注解

MiddlewareSet使用 对象在构造函数中添加多个中间件组件。 使用 方法在 Use(IMiddleware) 构造后向适配器添加其他中间件。

适用于

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

使用凭据提供程序初始化 类的新实例 BotFrameworkAdapter

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)

参数

credentialProvider
ICredentialProvider

凭据提供程序。

authConfig
AuthenticationConfiguration

身份验证配置。

channelProvider
IChannelProvider

通道提供程序。

connectorClientRetryPolicy
Microsoft.Rest.TransientFaultHandling.RetryPolicy

用于重试 HTTP 操作的重试策略。

customHttpClient
HttpClient

HTTP 客户端。

middleware
IMiddleware

要最初添加到适配器的中间件。

logger
ILogger

此适配器应使用的 ILogger 实现。

例外

credentialProvidernull

注解

MiddlewareSet使用 对象在构造函数中添加多个中间件组件。 使用 方法在 Use(IMiddleware) 构造后向适配器添加其他中间件。

适用于