语言

BotFrameworkAuthentication.GenerateCallerIdAsync 方法

定义

生成相应的调用ID,用于写入活动,这可能是空的。

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

如果这不是技能,默认的呼叫ID。

cancellationToken
CancellationToken

取消令牌。

返回

呼叫者ID,这可能是无效的。

适用于