BotFrameworkAuthenticationFactory.Create 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
Create()
创建匿名测试场景的实例 BotFrameworkAuthentication 。
public static Microsoft.Bot.Connector.Authentication.BotFrameworkAuthentication Create();
static member Create : unit -> Microsoft.Bot.Connector.Authentication.BotFrameworkAuthentication
Public Shared Function Create () As BotFrameworkAuthentication
返回
新 BotFrameworkAuthentication 实例。
适用于
Create(String, Boolean, String, String, String, String, String, String, String, ServiceClientCredentialsFactory, AuthenticationConfiguration, IHttpClientFactory, ILogger)
创建相应 BotFrameworkAuthentication 的实例。
public static Microsoft.Bot.Connector.Authentication.BotFrameworkAuthentication Create(string channelService, bool validateAuthority, string toChannelFromBotLoginUrl, string toChannelFromBotOAuthScope, string toBotFromChannelTokenIssuer, string oAuthUrl, string toBotFromChannelOpenIdMetadataUrl, string toBotFromEmulatorOpenIdMetadataUrl, string callerId, Microsoft.Bot.Connector.Authentication.ServiceClientCredentialsFactory credentialFactory, Microsoft.Bot.Connector.Authentication.AuthenticationConfiguration authConfiguration, System.Net.Http.IHttpClientFactory httpClientFactory, Microsoft.Extensions.Logging.ILogger logger);
static member Create : string * bool * string * string * string * string * string * string * string * Microsoft.Bot.Connector.Authentication.ServiceClientCredentialsFactory * Microsoft.Bot.Connector.Authentication.AuthenticationConfiguration * System.Net.Http.IHttpClientFactory * Microsoft.Extensions.Logging.ILogger -> Microsoft.Bot.Connector.Authentication.BotFrameworkAuthentication
Public Shared Function Create (channelService As String, validateAuthority As Boolean, toChannelFromBotLoginUrl As String, toChannelFromBotOAuthScope As String, toBotFromChannelTokenIssuer As String, oAuthUrl As String, toBotFromChannelOpenIdMetadataUrl As String, toBotFromEmulatorOpenIdMetadataUrl As String, callerId As String, credentialFactory As ServiceClientCredentialsFactory, authConfiguration As AuthenticationConfiguration, httpClientFactory As IHttpClientFactory, logger As ILogger) As BotFrameworkAuthentication
参数
- channelService
- String
通道服务。
- validateAuthority
- Boolean
要使用的验证颁发机构值。
- toChannelFromBotLoginUrl
- String
从机器人登录 URL 到通道。
- toChannelFromBotOAuthScope
- String
来自机器人 oauth 范围的到通道。
- toBotFromChannelTokenIssuer
- String
来自通道令牌颁发者的机器人。
- oAuthUrl
- String
oAuth URL。
- toBotFromChannelOpenIdMetadataUrl
- String
通道开放 ID 元数据 URL 中的到机器人。
- toBotFromEmulatorOpenIdMetadataUrl
- String
从模拟器打开 ID 元数据 URL 到机器人。
- callerId
- String
Microsoft应用密码。
- credentialFactory
- ServiceClientCredentialsFactory
用来 ServiceClientCredentialsFactory 创建凭证。
- authConfiguration
- AuthenticationConfiguration
- httpClientFactory
- IHttpClientFactory
要使用的 IHttpClientFactory。
返回
新 BotFrameworkAuthentication 实例。