UserTokenExtensions.ExchangeAsyncAsync 方法

定义

交换。

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)

参数

operations
OAuthClient

此扩展方法的操作组。

userId
String

用户 ID。

connectionName
String

连接名称。

channelId
String

通道 ID。

exchangeRequest
TokenExchangeRequest

Exchange 请求。

cancellationToken
CancellationToken

取消标记。

返回

表示排队等待执行的工作的任务。

适用于