BotFrameworkAuthentication.GenerateCallerIdAsync Methode
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Genereert de juiste callerId om naar de activiteit te schrijven. Dit kan null zijn.
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)
Parameters
- credentialFactory
- ServiceClientCredentialsFactory
Een ServiceClientCredentialsFactory om te gebruiken.
- claimsIdentity
- ClaimsIdentity
De inkomende claims.
- callerId
- String
De standaard callerId die moet worden gebruikt als dit geen vaardigheid is.
- cancellationToken
- CancellationToken
Een annuleringstoken.
Retouren
De callerId, deze kan null zijn.