BotFrameworkAuthentication.GenerateCallerIdAsync Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Genererar rätt callerId för att skriva på aktiviteten, detta kan vara 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)
Parametrar
- credentialFactory
- ServiceClientCredentialsFactory
A ServiceClientCredentialsFactory att använda.
- claimsIdentity
- ClaimsIdentity
De inkommande kraven.
- callerId
- String
Standardanroparnamnet att använda om detta inte är en färdighet.
- cancellationToken
- CancellationToken
En annulleringstoken.
Returer
Uppringarens ID, detta kan vara ogiltigt.