Jaa


TestAdapter.GetTokenStatusAsync Method

Definition

Overloads

GetTokenStatusAsync(ITurnContext, String, String, CancellationToken)

Gets the token statuses, using the bot's app credentials.

GetTokenStatusAsync(ITurnContext, AppCredentials, String, String, CancellationToken)

Gets the token statuses, using customized AppCredentials.

GetTokenStatusAsync(ITurnContext, String, String, CancellationToken)

Gets the token statuses, using the bot's app credentials.

public virtual System.Threading.Tasks.Task<Microsoft.Bot.Schema.TokenStatus[]> GetTokenStatusAsync (Microsoft.Bot.Builder.ITurnContext context, string userId, string includeFilter = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetTokenStatusAsync : Microsoft.Bot.Builder.ITurnContext * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.TokenStatus[]>
override this.GetTokenStatusAsync : Microsoft.Bot.Builder.ITurnContext * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.TokenStatus[]>
Public Overridable Function GetTokenStatusAsync (context As ITurnContext, userId As String, Optional includeFilter As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of TokenStatus())

Parameters

context
ITurnContext

The turnContext (with a valid Activity).

userId
String

The user ID.

includeFilter
String

Optional comma separated list of the connections to include, or null to return the token status for each configured connection.

cancellationToken
CancellationToken

The cancellation token.

Returns

Array of TokenStatus.

Implements

Applies to

GetTokenStatusAsync(ITurnContext, AppCredentials, String, String, CancellationToken)

Gets the token statuses, using customized AppCredentials.

public virtual System.Threading.Tasks.Task<Microsoft.Bot.Schema.TokenStatus[]> GetTokenStatusAsync (Microsoft.Bot.Builder.ITurnContext context, Microsoft.Bot.Connector.Authentication.AppCredentials oAuthAppCredentials, string userId, string includeFilter = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetTokenStatusAsync : Microsoft.Bot.Builder.ITurnContext * Microsoft.Bot.Connector.Authentication.AppCredentials * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.TokenStatus[]>
override this.GetTokenStatusAsync : Microsoft.Bot.Builder.ITurnContext * Microsoft.Bot.Connector.Authentication.AppCredentials * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.TokenStatus[]>
Public Overridable Function GetTokenStatusAsync (context As ITurnContext, oAuthAppCredentials As AppCredentials, userId As String, Optional includeFilter As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of TokenStatus())

Parameters

context
ITurnContext

The turnContext (with a valid Activity).

oAuthAppCredentials
AppCredentials

The app credentials for OAuth.

userId
String

The user ID.

includeFilter
String

Optional comma separated list of the connections to include, or null to return the token status for each configured connection.

cancellationToken
CancellationToken

The cancellation token.

Returns

Array of TokenStatus.

Implements

Applies to