Context<TActivity>.SignOut(String, 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.
Caution
Use the OAuthFlow directly: TeamsBotApplication.GetOAuthFlow(connectionName).SignOutAsync(context, ...).
Sign the user out, revoking their token from the Bot Framework Token Store.
[System.Obsolete("Use the OAuthFlow directly: TeamsBotApplication.GetOAuthFlow(connectionName).SignOutAsync(context, ...).")]
public System.Threading.Tasks.Task SignOut(string? connectionName = default, System.Threading.CancellationToken cancellationToken = default);
[<System.Obsolete("Use the OAuthFlow directly: TeamsBotApplication.GetOAuthFlow(connectionName).SignOutAsync(context, ...).")>]
member this.SignOut : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function SignOut (Optional connectionName As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task
Parameters
- connectionName
- String
The connection name to sign out from. If null, uses the default registered connection.
- cancellationToken
- CancellationToken
A cancellation token.
Returns
- Attributes