Dela via


BotFrameworkAuthentication.GenerateCallerIdAsync Metod

Definition

Genererar lämpligt callerId för att skriva till 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

En ServiceClientCredentialsFactory som ska användas.

claimsIdentity
ClaimsIdentity

Inkommande anspråk.

callerId
String

Standardanrops-ID:t som ska användas om detta inte är en färdighet.

cancellationToken
CancellationToken

En annulleringstoken.

Returer

CallerId kan vara null.

Gäller för