Język

BotFrameworkAuthenticationFactory.Create Metoda

Definicja

Przeciążenia

Create()

Tworzy instancję BotFrameworkAuthentication do anonimowych scenariuszy testowych.

public static Microsoft.Bot.Connector.Authentication.BotFrameworkAuthentication Create();
static member Create : unit -> Microsoft.Bot.Connector.Authentication.BotFrameworkAuthentication
Public Shared Function Create () As BotFrameworkAuthentication

Zwraca

Nowe BotFrameworkAuthentication wystąpienie.

Dotyczy

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

Tworzy odpowiednią instancję 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

Parametry

channelService
String

Usługa kanału.

validateAuthority
Boolean

Wartość walidowania urzędu do użycia.

toChannelFromBotLoginUrl
String

Adres URL logowania bota do kanału.

toChannelFromBotOAuthScope
String

Do kanału z zakresu oauth bota.

toBotFromChannelTokenIssuer
String

Element to bot z wystawcy tokenu kanału.

oAuthUrl
String

Adres URL protokołu oAuth.

toBotFromChannelOpenIdMetadataUrl
String

Adres URL do bota z adresu URL metadanych otwierania identyfikatora kanału.

toBotFromEmulatorOpenIdMetadataUrl
String

Element do bota z adresu URL metadanych identyfikatora otwierania emulatora.

callerId
String

Hasło aplikacji firmy Microsoft.

credentialFactory
ServiceClientCredentialsFactory

Do ServiceClientCredentialsFactory użycia do tworzenia danych uwierzytelniających.

httpClientFactory
IHttpClientFactory

IHttpClientFactory do użycia.

logger
ILogger

ILogger do użycia.

Zwraca

Nowe BotFrameworkAuthentication wystąpienie.

Dotyczy