Del via


BotFrameworkHttpAdapterBase.SendStreamingActivityAsync Method

Definition

Sends an activity.

public System.Threading.Tasks.Task<Microsoft.Bot.Schema.ResourceResponse> SendStreamingActivityAsync (Microsoft.Bot.Schema.Activity activity, System.Threading.CancellationToken cancellationToken = default);
member this.SendStreamingActivityAsync : Microsoft.Bot.Schema.Activity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.ResourceResponse>
Public Function SendStreamingActivityAsync (activity As Activity, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ResourceResponse)

Parameters

activity
Activity

>The Activity to send.

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.

Remarks

If the task completes successfully, the result contains a the resource response object.

Applies to