Lingua

OAuthClient.ExchangeAsyncWithHttpMessagesAsync Metodo

Definizione

Exchange con messaggio 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))

Parametri

userId
String

ID utente.

connectionName
String

Nome connessione.

channelId
String

ID canale.

exchangeRequest
TokenExchangeRequest

Richiesta di scambio.

customHeaders
Dictionary<String,List<String>>

Header che verranno aggiunti alla richiesta.

cancellationToken
CancellationToken

Token di annullamento.

Valori restituiti

Task<Microsoft.Rest.HttpOperationResponse<Object>>

Attività che rappresenta il lavoro in coda da eseguire.

Eccezioni

Veniva lanciata quando l'operazione restituiva un codice di stato non valido.

Microsoft.Rest.SerializationException

Viene lanciato quando non si riesce a deserializzare la risposta.

Microsoft.Rest.ValidationException

Viene lanciato quando un valore di input non corrisponde al tipo di dato atteso, all'intervallo o al pattern.

Viene lanciato quando un parametro richiesto è nullo.

Si applica a