Condividi tramite


UserTokenExtensions.GetAadTokensAsync Metodo

Definizione

Ottenere il token AAD.

public static System.Threading.Tasks.Task<System.Collections.Generic.IDictionary<string,Microsoft.Bot.Schema.TokenResponse>> GetAadTokensAsync (this Microsoft.Bot.Connector.IUserToken operations, string userId, string connectionName, Microsoft.Bot.Schema.AadResourceUrls aadResourceUrls, string channelId = default, System.Threading.CancellationToken cancellationToken = default);
static member GetAadTokensAsync : Microsoft.Bot.Connector.IUserToken * string * string * Microsoft.Bot.Schema.AadResourceUrls * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IDictionary<string, Microsoft.Bot.Schema.TokenResponse>>
<Extension()>
Public Function GetAadTokensAsync (operations As IUserToken, userId As String, connectionName As String, aadResourceUrls As AadResourceUrls, Optional channelId As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IDictionary(Of String, TokenResponse))

Parametri

operations
IUserToken

Gruppo di operazioni per questo metodo di estensione.

userId
String

ID utente.

connectionName
String

Nome connessione.

aadResourceUrls
AadResourceUrls

URL delle risorse di AAD.

channelId
String

ID canale.

cancellationToken
CancellationToken

Token di annullamento.

Restituisce

Attività che rappresenta un IDictionary di TokenResponses.

Si applica a