Поделиться через


BotFrameworkAuthentication.GenerateCallerIdAsync Метод

Определение

Создает соответствующий callerId для записи в действие. Это значение может иметь значение 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)

Параметры

credentialFactory
ServiceClientCredentialsFactory

Используемый ServiceClientCredentialsFactory объект .

claimsIdentity
ClaimsIdentity

Входящие утверждения.

callerId
String

CallerId по умолчанию, используемый, если это не навык.

cancellationToken
CancellationToken

Токен отмены.

Возвращаемое значение

CallerId может иметь значение NULL.

Применяется к