Compartir a través de


UserTokenExtensions.ExchangeAsyncAsync Método

Definición

Intercambiar.

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)

Parámetros

operations
OAuthClient

Grupo de operaciones para este método de extensión.

userId
String

Id. de usuario.

connectionName
String

Nombre de la conexión.

channelId
String

Id. de canal.

exchangeRequest
TokenExchangeRequest

Solicitud de Exchange.

cancellationToken
CancellationToken

Token de cancelación.

Devoluciones

Tarea que representa el trabajo en cola que se va a ejecutar.

Se aplica a