BotFrameworkAuthentication.GenerateCallerIdAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
產生適當的 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 A,用來使用。
- claimsIdentity
- ClaimsIdentity
進貨的理賠。
- callerId
- String
如果這不是技能,預設的呼叫 ID。
- cancellationToken
- CancellationToken
取消令牌。
傳回
呼叫者ID,這可能是無效的。