UserTokenClientWrapper.ExchangeTokenAsync 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.
public static System.Threading.Tasks.Task<Microsoft.Agents.Core.Models.TokenResponse> ExchangeTokenAsync(Microsoft.Agents.Builder.ITurnContext context, string connectionName, Microsoft.Agents.Core.Models.TokenExchangeRequest tokenExchangeRequest, System.Threading.CancellationToken cancellationToken);
static member ExchangeTokenAsync : Microsoft.Agents.Builder.ITurnContext * string * Microsoft.Agents.Core.Models.TokenExchangeRequest * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Agents.Core.Models.TokenResponse>
Public Shared Function ExchangeTokenAsync (context As ITurnContext, connectionName As String, tokenExchangeRequest As TokenExchangeRequest, cancellationToken As CancellationToken) As Task(Of TokenResponse)
Parameters
- context
- ITurnContext
- connectionName
- String
- tokenExchangeRequest
- TokenExchangeRequest
- cancellationToken
- CancellationToken