BotFrameworkAuthentication.GenerateCallerIdAsync 方法

定义

生成相应的 callerId 以写入活动,这可能为 null。

protected internal System.Threading.Tasks.Task<string> GenerateCallerIdAsync (Microsoft.Bot.Connector.Authentication.ServiceClientCredentialsFactory credentialFactory, System.Security.Claims.ClaimsIdentity claimsIdentity, string callerId, System.Threading.CancellationToken cancellationToken);
member this.GenerateCallerIdAsync : Microsoft.Bot.Connector.Authentication.ServiceClientCredentialsFactory * System.Security.Claims.ClaimsIdentity * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Protected Friend Function GenerateCallerIdAsync (credentialFactory As ServiceClientCredentialsFactory, claimsIdentity As ClaimsIdentity, callerId As String, cancellationToken As CancellationToken) As Task(Of String)

参数

claimsIdentity
ClaimsIdentity

入站声明。

callerId
String

如果这不是技能,则使用的默认 callerId。

cancellationToken
CancellationToken

取消标记。

返回

callerId,这可能为 null。

适用于