Share via


TurnContext.SendActivitiesAsync(IActivity[], CancellationToken) Method

Definition

Sends a set of activities to the sender of the incoming activity.

public System.Threading.Tasks.Task<Microsoft.Bot.Schema.ResourceResponse[]> SendActivitiesAsync (Microsoft.Bot.Schema.IActivity[] activities, System.Threading.CancellationToken cancellationToken = default);
abstract member SendActivitiesAsync : Microsoft.Bot.Schema.IActivity[] * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.ResourceResponse[]>
override this.SendActivitiesAsync : Microsoft.Bot.Schema.IActivity[] * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.ResourceResponse[]>
Public Function SendActivitiesAsync (activities As IActivity(), Optional cancellationToken As CancellationToken = Nothing) As Task(Of ResourceResponse())

Parameters

activities
IActivity[]

The activities to send.

cancellationToken
CancellationToken

Cancellation token.

Returns

A task that represents the work queued to execute.

Implements

Remarks

If the activities are successfully sent, the task result contains an array of ResourceResponse objects containing the IDs that the receiving channel assigned to the activities.

Applies to