BotFrameworkAuthentication.GenerateCallerIdAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Generates the appropriate callerId to write onto the activity, this might be 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)
Parameters
- credentialFactory
- ServiceClientCredentialsFactory
A ServiceClientCredentialsFactory to use.
- claimsIdentity
- ClaimsIdentity
The inbound claims.
- callerId
- String
The default callerId to use if this is not a skill.
- cancellationToken
- CancellationToken
A cancellation token.
Returns
The callerId, this might be null.