Partager via


BotFrameworkAuthentication.CreateUserTokenClientAsync Méthode

Définition

Crée l’instance appropriée UserTokenClient .

public abstract System.Threading.Tasks.Task<Microsoft.Bot.Connector.Authentication.UserTokenClient> CreateUserTokenClientAsync (System.Security.Claims.ClaimsIdentity claimsIdentity, System.Threading.CancellationToken cancellationToken);
abstract member CreateUserTokenClientAsync : System.Security.Claims.ClaimsIdentity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Connector.Authentication.UserTokenClient>
Public MustOverride Function CreateUserTokenClientAsync (claimsIdentity As ClaimsIdentity, cancellationToken As CancellationToken) As Task(Of UserTokenClient)

Paramètres

claimsIdentity
ClaimsIdentity

Le entrant Activity's ClaimsIdentity.

cancellationToken
CancellationToken

Jeton d'annulation.

Retours

Tâche asynchrone avec UserTokenClient instance.

S’applique à