BotFrameworkAuthentication.GenerateCallerIdAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
生成相应的调用ID,用于写入活动,这可能是空的。
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
- claimsIdentity
- ClaimsIdentity
进货索赔。
- callerId
- String
如果这不是技能,默认的呼叫ID。
- cancellationToken
- CancellationToken
取消令牌。
返回
呼叫者ID,这可能是无效的。