Jaa


BotFrameworkAdapter.ProcessOutgoingActivityAsync Method

Definition

Custom logic to send an outgoing activity. Subclasses can override this method along with CanProcessOutgoingActivity to have custom logic to process the outgoing activity.

protected virtual System.Threading.Tasks.Task<Microsoft.Bot.Schema.ResourceResponse> ProcessOutgoingActivityAsync (Microsoft.Bot.Builder.ITurnContext turnContext, Microsoft.Bot.Schema.Activity activity, System.Threading.CancellationToken cancellationToken);
abstract member ProcessOutgoingActivityAsync : Microsoft.Bot.Builder.ITurnContext * Microsoft.Bot.Schema.Activity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.ResourceResponse>
override this.ProcessOutgoingActivityAsync : Microsoft.Bot.Builder.ITurnContext * Microsoft.Bot.Schema.Activity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.ResourceResponse>
Protected Overridable Function ProcessOutgoingActivityAsync (turnContext As ITurnContext, activity As Activity, cancellationToken As CancellationToken) As Task(Of ResourceResponse)

Parameters

turnContext
ITurnContext

The context object for the turn.

activity
Activity

The activity to be processed.

cancellationToken
CancellationToken

The cancellation token.

Returns

The result of processing the activity.

Applies to