Share via


BotFrameworkAdapter.GetTokenStatusAsync Method

Definition

Overloads

GetTokenStatusAsync(ITurnContext, String, String, CancellationToken)

Retrieves the token status for each configured connection for the given user, using the bot's AppCredentials.

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

Retrieves the token status for each configured connection for the given user, using customized AppCredentials.

GetTokenStatusAsync(ITurnContext, String, String, CancellationToken)

Retrieves the token status for each configured connection for the given user, using the bot's AppCredentials.

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

Context for the current turn of conversation with the user.

userId
String

The user Id for which token status is retrieved.

includeFilter
String

Optional comma separated list of connection's to include. Blank will return token status for all configured connections.

cancellationToken
CancellationToken

The async operation cancellation token.

Returns

Array of TokenStatus.

Implements

Applies to

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

Retrieves the token status for each configured connection for the given user, 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

Context for the current turn of conversation with the user.

oAuthAppCredentials
AppCredentials

AppCredentials for OAuth.

userId
String

The user Id for which token status is retrieved.

includeFilter
String

Optional comma separated list of connection's to include. Blank will return token status for all configured connections.

cancellationToken
CancellationToken

The async operation cancellation token.

Returns

Array of TokenStatus.

Implements

Applies to