IUserTokenProvider.GetTokenStatusAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieves the token status for each configured connection for the given user, using the bot's AppCredentials.
public 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[]>
Public 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
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Returns
Array of TokenStatus.