Dela via


TestAdapter.GetAadTokensAsync Metod

Definition

Överlagringar

GetAadTokensAsync(ITurnContext, String, String[], String, CancellationToken)

Returnerar en ordlista med TokenResponses för resurs-URL:erna med hjälp av robotens AppCredentials.

GetAadTokensAsync(ITurnContext, AppCredentials, String, String[], String, CancellationToken)

Returnerar en ordlista med TokenResponses för resurs-URL:erna med anpassade AppCredentials.

GetAadTokensAsync(ITurnContext, String, String[], String, CancellationToken)

Returnerar en ordlista med TokenResponses för resurs-URL:erna med hjälp av robotens AppCredentials.

public virtual System.Threading.Tasks.Task<System.Collections.Generic.Dictionary<string,Microsoft.Bot.Schema.TokenResponse>> GetAadTokensAsync (Microsoft.Bot.Builder.ITurnContext context, string connectionName, string[] resourceUrls, string userId = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAadTokensAsync : Microsoft.Bot.Builder.ITurnContext * string * string[] * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.Dictionary<string, Microsoft.Bot.Schema.TokenResponse>>
override this.GetAadTokensAsync : Microsoft.Bot.Builder.ITurnContext * string * string[] * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.Dictionary<string, Microsoft.Bot.Schema.TokenResponse>>
Public Overridable Function GetAadTokensAsync (context As ITurnContext, connectionName As String, resourceUrls As String(), Optional userId As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Dictionary(Of String, TokenResponse))

Parametrar

context
ITurnContext

The TurnContext.

connectionName
String

ConnectionName.

resourceUrls
String[]

Listan över URL:er för AAD-resurser.

userId
String

Användar-ID:t.

cancellationToken
CancellationToken

AnnulleringenToken.

Returer

Ordlistan för TokenResponses för varje resurs-URL.

Implementeringar

Gäller för

GetAadTokensAsync(ITurnContext, AppCredentials, String, String[], String, CancellationToken)

Returnerar en ordlista med TokenResponses för resurs-URL:erna med anpassade AppCredentials.

public virtual System.Threading.Tasks.Task<System.Collections.Generic.Dictionary<string,Microsoft.Bot.Schema.TokenResponse>> GetAadTokensAsync (Microsoft.Bot.Builder.ITurnContext context, Microsoft.Bot.Connector.Authentication.AppCredentials oAuthAppCredentials, string connectionName, string[] resourceUrls, string userId = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAadTokensAsync : Microsoft.Bot.Builder.ITurnContext * Microsoft.Bot.Connector.Authentication.AppCredentials * string * string[] * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.Dictionary<string, Microsoft.Bot.Schema.TokenResponse>>
override this.GetAadTokensAsync : Microsoft.Bot.Builder.ITurnContext * Microsoft.Bot.Connector.Authentication.AppCredentials * string * string[] * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.Dictionary<string, Microsoft.Bot.Schema.TokenResponse>>
Public Overridable Function GetAadTokensAsync (context As ITurnContext, oAuthAppCredentials As AppCredentials, connectionName As String, resourceUrls As String(), Optional userId As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Dictionary(Of String, TokenResponse))

Parametrar

context
ITurnContext

The TurnContext.

oAuthAppCredentials
AppCredentials

AppCredentials för OAuth.

connectionName
String

ConnectionName.

resourceUrls
String[]

Listan över URL:er för AAD-resurser.

userId
String

Användar-ID:t.

cancellationToken
CancellationToken

AnnulleringenToken.

Returer

Ordlistan för TokenResponses för varje resurs-URL.

Implementeringar

Gäller för