語言

ConfigurationChannelProvider 類別

定義

警告

Use ConfigurationBotFrameworkAuthentication instead to configure channel.

頻道提供者用來 AppSettings 查詢頻道服務屬性。

[System.Obsolete("Use `ConfigurationBotFrameworkAuthentication` instead to configure channel.", false)]
public sealed class ConfigurationChannelProvider : Microsoft.Bot.Connector.Authentication.SimpleChannelProvider
[<System.Obsolete("Use `ConfigurationBotFrameworkAuthentication` instead to configure channel.", false)>]
type ConfigurationChannelProvider = class
    inherit SimpleChannelProvider
Public NotInheritable Class ConfigurationChannelProvider
Inherits SimpleChannelProvider
繼承
ConfigurationChannelProvider
屬性

備註

這將從配置項目中填充 ChannelService ,並輸入 的 ChannelServiceKey鍵值。

注意:若鍵不存在,將使用一個 null 值。

建構函式

名稱 Description
ConfigurationChannelProvider()
已淘汰.

初始化 ConfigurationChannelProvider 類別的新執行個體。

ConfigurationChannelProvider(IConfiguration)
已淘汰.

初始化 ConfigurationChannelProvider 類別的新執行個體。

欄位

名稱 Description
ChannelServiceKey
已淘汰.

ChannelService 的鑰匙。

屬性

名稱 Description
ChannelService
已淘汰.

取得或設定頻道服務。

(繼承來源 SimpleChannelProvider)

方法

名稱 Description
GetChannelServiceAsync()
已淘汰.

取得這個通道提供者的通道服務屬性。

(繼承來源 SimpleChannelProvider)
IsGovernment()
已淘汰.

會取得該供應商是否代表美國政府 Azure 頻道的值。

(繼承來源 SimpleChannelProvider)
IsPublicAzure()
已淘汰.

取得值,這個提供者是否代表公用 Azure 上的通道。

(繼承來源 SimpleChannelProvider)

適用於