共用方式為


BotFrameworkAuthenticationFactory.Create 方法

定義

多載

Create()

建立匿名測試案例的 BotFrameworkAuthentication 實例。

Create(String, Boolean, String, String, String, String, String, String, String, ServiceClientCredentialsFactory, AuthenticationConfiguration, IHttpClientFactory, ILogger)

建立適當的 BotFrameworkAuthentication 實例。

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

從 Bot 登入 URL 到通道的 。

toChannelFromBotOAuthScope
String

從 Bot oauth 範圍到通道的 。

toBotFromChannelTokenIssuer
String

從通道權杖簽發者的 至 Bot。

oAuthUrl
String

oAuth URL。

toBotFromChannelOpenIdMetadataUrl
String

從通道開啟識別碼中繼資料 URL 到 Bot 的 。

toBotFromEmulatorOpenIdMetadataUrl
String

從模擬器開啟識別碼中繼資料 URL 到 Bot 的 。

callerId
String

Microsoft 應用程式密碼。

credentialFactory
ServiceClientCredentialsFactory

ServiceClientCredentialsFactory要用來建立認證的 。

authConfiguration
AuthenticationConfiguration

要使用的 AuthenticationConfiguration

httpClientFactory
IHttpClientFactory

要使用的 IHttpClientFactory

logger
ILogger

要使用的 ILogger

傳回

新的 BotFrameworkAuthentication 執行個體。

適用於