Lenguaje

OAuthClient.ExchangeAsyncWithHttpMessagesAsync Método

Definición

Exchange con mensaje HTTP.

public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<object>> ExchangeAsyncWithHttpMessagesAsync(string userId, string connectionName, string channelId, Microsoft.Bot.Schema.TokenExchangeRequest exchangeRequest, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
member this.ExchangeAsyncWithHttpMessagesAsync : string * string * string * Microsoft.Bot.Schema.TokenExchangeRequest * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<obj>>
Public Function ExchangeAsyncWithHttpMessagesAsync (userId As String, connectionName As String, channelId As String, exchangeRequest As TokenExchangeRequest, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpOperationResponse(Of Object))

Parámetros

userId
String

Id. de usuario

connectionName
String

Nombre de conexión.

channelId
String

Id. de canal.

exchangeRequest
TokenExchangeRequest

Solicitud de intercambio.

customHeaders
Dictionary<String,List<String>>

Cabeceras que se añadirán a la solicitud.

cancellationToken
CancellationToken

Token de cancelación.

Devoluciones

Task<Microsoft.Rest.HttpOperationResponse<Object>>

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

Excepciones

Se desactivó cuando la operación devolvió un código de estado inválido.

Microsoft.Rest.SerializationException

Lo lanzamos cuando no se puede desserializar la respuesta.

Microsoft.Rest.ValidationException

Se lanza cuando un valor de entrada no coincide con el tipo de dato esperado, rango o patrón.

Se lanza cuando un parámetro requerido es nulo.

Se aplica a