Share via


ChannelServiceHandlerBase.HandleSendToConversationAsync Method

Definition

Sends an activity to the end of a conversation.

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

Parameters

authHeader
String

The authentication header.

conversationId
String

The conversation Id.

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<TResult> representing the result of the asynchronous operation.

Applies to