TeamsActivityHandler.OnTeamsAnonymousAppBasedLinkQueryAsync 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.
Invoked when an anonymous app based link query activity is received from the connector.
protected virtual System.Threading.Tasks.Task<Microsoft.Bot.Schema.Teams.MessagingExtensionResponse> OnTeamsAnonymousAppBasedLinkQueryAsync (Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IInvokeActivity> turnContext, Microsoft.Bot.Schema.Teams.AppBasedLinkQuery query, System.Threading.CancellationToken cancellationToken);
abstract member OnTeamsAnonymousAppBasedLinkQueryAsync : Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IInvokeActivity> * Microsoft.Bot.Schema.Teams.AppBasedLinkQuery * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.Teams.MessagingExtensionResponse>
override this.OnTeamsAnonymousAppBasedLinkQueryAsync : Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IInvokeActivity> * Microsoft.Bot.Schema.Teams.AppBasedLinkQuery * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.Teams.MessagingExtensionResponse>
Protected Overridable Function OnTeamsAnonymousAppBasedLinkQueryAsync (turnContext As ITurnContext(Of IInvokeActivity), query As AppBasedLinkQuery, cancellationToken As CancellationToken) As Task(Of MessagingExtensionResponse)
Parameters
- turnContext
- ITurnContext<IInvokeActivity>
A strongly-typed context object for this turn.
- query
- AppBasedLinkQuery
The invoke request body type for app-based link query.
- cancellationToken
- CancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Returns
The Messaging Extension Response for the query.