Freigeben über


BotFrameworkAuthentication.GenerateCallerIdAsync Methode

Definition

Generiert die entsprechende CallerId, um in die Aktivität zu schreiben. Dies kann NULL sein.

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)

Parameter

claimsIdentity
ClaimsIdentity

Die eingehenden Ansprüche.

callerId
String

Die standardmäßige CallerId, die verwendet werden soll, wenn es sich nicht um einen Skill handelt.

cancellationToken
CancellationToken

Ein Abbruchtoken.

Gibt zurück

Die callerId, dies kann NULL sein.

Gilt für: