InterceptionMiddleware.InboundAsync Method

Definition

Overriding methods implement processing of inbound activities.

protected abstract System.Threading.Tasks.Task<(bool shouldForwardToApplication, bool shouldIntercept)> InboundAsync (Microsoft.Bot.Builder.ITurnContext turnContext, Microsoft.Bot.Schema.Activity traceActivity, System.Threading.CancellationToken cancellationToken);
abstract member InboundAsync : Microsoft.Bot.Builder.ITurnContext * Microsoft.Bot.Schema.Activity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<ValueTuple<bool, bool>>
Protected MustOverride Function InboundAsync (turnContext As ITurnContext, traceActivity As Activity, cancellationToken As CancellationToken) As Task(Of ValueTuple(Of Boolean, Boolean))

Parameters

turnContext
ITurnContext

The turn context.

traceActivity
Activity

The trace activity.

cancellationToken
CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

A Task representing the asynchronous operation.

Applies to