Partilhar via


BotFrameworkAuthentication.CreateUserTokenClientAsync Método

Definição

Cria a instância adequada 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)

Parâmetros

claimsIdentity
ClaimsIdentity

A entrada Activityé ClaimsIdentity.

cancellationToken
CancellationToken

Um token de cancelamento.

Devoluções

Tarefa Assíncrona com UserTokenClient instância.

Aplica-se a