Context<TActivity>.GetConnectionStatusAsync(CancellationToken) 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. 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(System.Threading.CancellationToken cancellationToken = default);
member this.GetConnectionStatusAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.Teams.Core.GetTokenStatusResult>>
Public Function GetConnectionStatusAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of IList(Of GetTokenStatusResult))
Parameters
- cancellationToken
- CancellationToken
A cancellation token.
Returns
A list of token status results for all configured connections.