Freigeben über


ChannelAdapter.SendActivitiesAsync Method

Definition

When overridden in a derived class, sends activities to the conversation.

public abstract System.Threading.Tasks.Task<Microsoft.Agents.Core.Models.ResourceResponse[]> SendActivitiesAsync(Microsoft.Agents.Builder.ITurnContext turnContext, Microsoft.Agents.Core.Models.IActivity[] activities, System.Threading.CancellationToken cancellationToken);
abstract member SendActivitiesAsync : Microsoft.Agents.Builder.ITurnContext * Microsoft.Agents.Core.Models.IActivity[] * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Agents.Core.Models.ResourceResponse[]>
Public MustOverride Function SendActivitiesAsync (turnContext As ITurnContext, activities As IActivity(), cancellationToken As CancellationToken) As Task(Of ResourceResponse())

Parameters

turnContext
ITurnContext

The context object for the turn.

activities
IActivity[]

The activities to send.

cancellationToken
CancellationToken

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

Returns

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.

Implements

Applies to