BotFrameworkAuthentication.CreateUserTokenClientAsync 方法

定义

创建相应的 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)

参数

claimsIdentity
ClaimsIdentity

入站 ActivityClaimsIdentity

cancellationToken
CancellationToken

取消标记。

返回

包含实例的 UserTokenClient 异步任务。

适用于