Compartir a través de


ConfigurationBotFrameworkAuthentication.CreateUserTokenClientAsync Método

Definición

Crea la instancia adecuada UserTokenClient .

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

Parámetros

claimsIdentity
ClaimsIdentity

El valor de entrada Activityes ClaimsIdentity.

cancellationToken
CancellationToken

Token de cancelación.

Devoluciones

Tarea asincrónica con UserTokenClient instancia.

Se aplica a