Share via


InspectionMiddleware.InboundAsync Method

Definition

Processes inbound activities.

protected override System.Threading.Tasks.Task<(bool shouldForwardToApplication, bool shouldIntercept)> InboundAsync (Microsoft.Bot.Builder.ITurnContext turnContext, Microsoft.Bot.Schema.Activity traceActivity, System.Threading.CancellationToken cancellationToken);
override this.InboundAsync : Microsoft.Bot.Builder.ITurnContext * Microsoft.Bot.Schema.Activity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<ValueTuple<bool, bool>>
Protected Overrides 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