BotFrameworkHttpClient.BuildCredentialsAsync(String, String) 方法

定义

用于生成 AppCredentials 要用于获取此 HttpClient 令牌的对象的逻辑。

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)

参数

appId
String

应用程序 ID。

oAuthScope
String

可选的 OAuth 范围。

返回

用于获取令牌的应用凭据。

适用于