UserTokenExtensions.ExchangeAsyncAsync Method

Definition

Exchange.

public static System.Threading.Tasks.Task<object> ExchangeAsyncAsync (this Microsoft.Bot.Connector.OAuthClient operations, string userId, string connectionName, string channelId, Microsoft.Bot.Schema.TokenExchangeRequest exchangeRequest, System.Threading.CancellationToken cancellationToken = default);
static member ExchangeAsyncAsync : Microsoft.Bot.Connector.OAuthClient * string * string * string * Microsoft.Bot.Schema.TokenExchangeRequest * System.Threading.CancellationToken -> System.Threading.Tasks.Task<obj>
<Extension()>
Public Function ExchangeAsyncAsync (operations As OAuthClient, userId As String, connectionName As String, channelId As String, exchangeRequest As TokenExchangeRequest, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Object)

Parameters

operations
OAuthClient

The operations group for this extension method.

userId
String

User ID.

connectionName
String

Connection name.

channelId
String

Channel ID.

exchangeRequest
TokenExchangeRequest

Exchange request.

cancellationToken
CancellationToken

The cancellation token.

Returns

A task that represents the work queued to execute.

Applies to