OAuthFlow.GetConnectionStatusAsync<TActivity> 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.
Get the token status for all configured OAuth connections. This calls GetTokenStatus which returns every connection registered on the bot, so the developer never needs to enumerate connection names manually.
public System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.Teams.Core.GetTokenStatusResult>> GetConnectionStatusAsync<TActivity>(Microsoft.Teams.Apps.Context<TActivity> context, System.Threading.CancellationToken cancellationToken = default) where TActivity : Microsoft.Teams.Apps.Schema.TeamsActivity;
member this.GetConnectionStatusAsync : Microsoft.Teams.Apps.Context<'Activity (requires 'Activity :> Microsoft.Teams.Apps.Schema.TeamsActivity)> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.Teams.Core.GetTokenStatusResult>> (requires 'Activity :> Microsoft.Teams.Apps.Schema.TeamsActivity)
Public Function GetConnectionStatusAsync(Of TActivity As TeamsActivity) (context As Context(Of TActivity), Optional cancellationToken As CancellationToken = Nothing) As Task(Of IList(Of GetTokenStatusResult))
Type Parameters
- TActivity
The activity type.
Parameters
- context
- Context<TActivity>
The current turn context.
- cancellationToken
- CancellationToken
A cancellation token.
Returns
A list of token status results for all configured connections.