TeamsActivityHandler.OnTeamsO365ConnectorCardActionAsync 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 a O365 Connector Card Action activity is received from the connector.
protected virtual System.Threading.Tasks.Task OnTeamsO365ConnectorCardActionAsync (Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IInvokeActivity> turnContext, Microsoft.Bot.Schema.Teams.O365ConnectorCardActionQuery query, System.Threading.CancellationToken cancellationToken);
abstract member OnTeamsO365ConnectorCardActionAsync : Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IInvokeActivity> * Microsoft.Bot.Schema.Teams.O365ConnectorCardActionQuery * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.OnTeamsO365ConnectorCardActionAsync : Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IInvokeActivity> * Microsoft.Bot.Schema.Teams.O365ConnectorCardActionQuery * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Protected Overridable Function OnTeamsO365ConnectorCardActionAsync (turnContext As ITurnContext(Of IInvokeActivity), query As O365ConnectorCardActionQuery, cancellationToken As CancellationToken) As Task
Parameters
- turnContext
- ITurnContext<IInvokeActivity>
A strongly-typed context object for this turn.
The O365 connector card HttpPOST invoke query.
- cancellationToken
- CancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Returns
A task that represents the work queued to execute.