Delen via


BotFrameworkAdapter.BuildCredentialsAsync(String, String) Methode

Definitie

Logica voor het bouwen van een AppCredentials object dat moet worden gebruikt om tokens voor deze HttpClient te verkrijgen.

protected virtual System.Threading.Tasks.Task<Microsoft.Bot.Connector.Authentication.AppCredentials> BuildCredentialsAsync(string appId, string oAuthScope = default);
abstract member BuildCredentialsAsync : string * string -> System.Threading.Tasks.Task<Microsoft.Bot.Connector.Authentication.AppCredentials>
override this.BuildCredentialsAsync : string * string -> System.Threading.Tasks.Task<Microsoft.Bot.Connector.Authentication.AppCredentials>
Protected Overridable Function BuildCredentialsAsync (appId As String, Optional oAuthScope As String = Nothing) As Task(Of AppCredentials)

Parameters

appId
String

De toepassings-id.

oAuthScope
String

Het optionele OAuth-bereik.

Retouren

De app-referenties die moeten worden gebruikt om tokens te verkrijgen.

Van toepassing op