語言

ManagedIdentityAppCredentials(String, String, HttpClient, ILogger) 建構函式

定義

初始化 ManagedIdentityAppCredentials 類別的新執行個體。 AAD 認證驗證和快取的受控識別。

public ManagedIdentityAppCredentials(string appId, string oAuthScope, System.Net.Http.HttpClient customHttpClient = default, Microsoft.Extensions.Logging.ILogger logger = default);
new Microsoft.Bot.Connector.Authentication.ManagedIdentityAppCredentials : string * string * System.Net.Http.HttpClient * Microsoft.Extensions.Logging.ILogger -> Microsoft.Bot.Connector.Authentication.ManagedIdentityAppCredentials
Public Sub New (appId As String, oAuthScope As String, Optional customHttpClient As HttpClient = Nothing, Optional logger As ILogger = Nothing)

參數

appId
String

指派給 Bot 之受控識別的用戶端標識碼。

oAuthScope
String

令牌的範圍。

customHttpClient
HttpClient

可選 HttpClient 用於取得代幣。

logger
ILogger

可選 ILogger 地在取得和管理憑證時收集遙測資料。

適用於