語言

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

如果這不是技能,預設的呼叫 ID。

cancellationToken
CancellationToken

取消令牌。

傳回

呼叫者ID,這可能是無效的。

適用於