BotFrameworkAdapter.GetTokenStatusAsync Methode
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Overloads
| Name | Description |
|---|---|
| GetTokenStatusAsync(ITurnContext, String, String, CancellationToken) |
Haalt de tokenstatus op voor elke geconfigureerde verbinding voor de betreffende gebruiker, met behulp van de AppCredentials van de bot. |
| GetTokenStatusAsync(ITurnContext, AppCredentials, String, String, CancellationToken) |
Haalt de tokenstatus op voor elke geconfigureerde verbinding voor de betreffende gebruiker, met behulp van aangepaste AppCredentials. |
GetTokenStatusAsync(ITurnContext, String, String, CancellationToken)
Haalt de tokenstatus op voor elke geconfigureerde verbinding voor de betreffende gebruiker, met behulp van de AppCredentials van de bot.
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 voor de huidige beurt van gesprek met de gebruiker.
- userId
- String
De gebruikers-ID waarvoor de tokenstatus wordt opgehaald.
- includeFilter
- String
Optionele komma-gescheiden lijst van verbindingen om op te nemen. Leeg retourneert de tokenstatus voor alle geconfigureerde verbindingen.
- cancellationToken
- CancellationToken
Het asynchrone annuleringstoken voor de operatie.
Retouren
Array van TokenStatus.
Implementeringen
Van toepassing op
GetTokenStatusAsync(ITurnContext, AppCredentials, String, String, CancellationToken)
Haalt de tokenstatus op voor elke geconfigureerde verbinding voor de betreffende gebruiker, met behulp van aangepaste 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 voor de huidige beurt van gesprek met de gebruiker.
- oAuthAppCredentials
- AppCredentials
AppCredentials voor OAuth.
- userId
- String
De gebruikers-ID waarvoor de tokenstatus wordt opgehaald.
- includeFilter
- String
Optionele komma-gescheiden lijst van verbindingen om op te nemen. Leeg retourneert de tokenstatus voor alle geconfigureerde verbindingen.
- cancellationToken
- CancellationToken
Het asynchrone annuleringstoken voor de operatie.
Retouren
Array van TokenStatus.