Język

BotFrameworkAuthentication.GenerateCallerIdAsync Metoda

Definicja

Generuje odpowiedni callerId, aby zapisać go na aktywności, co może być 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)

Parametry

claimsIdentity
ClaimsIdentity

Zgłoszenia przychodzące.

callerId
String

Domyślny callerId do użycia, jeśli to nie jest umiejętność.

cancellationToken
CancellationToken

Token anulowania.

Zwraca

Dzwoniący, to może być nieważne.

Dotyczy