共用方式為


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)使用 方法,在建構之後將其他中介軟體新增至配接器。

適用於