Compartir a través de


IUserToken.GetTokenWithHttpMessagesAsync Método

Definición

Obtenga el token con el mensaje HTTP.

public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Bot.Schema.TokenResponse>> GetTokenWithHttpMessagesAsync (string userId, string connectionName, string channelId = default, string code = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetTokenWithHttpMessagesAsync : string * string * string * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Bot.Schema.TokenResponse>>
Public Function GetTokenWithHttpMessagesAsync (userId As String, connectionName As String, Optional channelId As String = Nothing, Optional code As String = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpOperationResponse(Of TokenResponse))

Parámetros

userId
String

Id. de usuario.

connectionName
String

Nombre de la conexión.

channelId
String

Id. de canal.

code
String

Programe.

customHeaders
Dictionary<String,List<String>>

Encabezados que se agregarán a la solicitud.

cancellationToken
CancellationToken

Token de cancelación.

Devoluciones

Task<Microsoft.Rest.HttpOperationResponse<TokenResponse>>

Tarea que representa la TokenResponse de la operación HTTP.

Excepciones

Se produce cuando la operación devolvió un código de estado no válido.

Microsoft.Rest.SerializationException

Se produce cuando no se puede deserializar la respuesta.

Microsoft.Rest.ValidationException

Se produce cuando un parámetro obligatorio es NULL.

Se aplica a