Dela via


UserTokenExtensions.ExchangeAsyncAsync Metod

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)

Parametrar

operations
OAuthClient

Åtgärdsgruppen för den här tilläggsmetoden.

userId
String

Användar-ID.

connectionName
String

Anslutningsnamn.

channelId
String

Kanal-ID.

exchangeRequest
TokenExchangeRequest

Exchange-begäran.

cancellationToken
CancellationToken

Annulleringstoken.

Returer

En uppgift som representerar det arbete som ska köras i kö.

Gäller för