DialogServiceConnector.SendActivityAsync(String) Method

Definition

Sends an activity to the backing dialog as an asynchronous operation.

public System.Threading.Tasks.Task<string> SendActivityAsync (string activityJSON);
member this.SendActivityAsync : string -> System.Threading.Tasks.Task<string>
Public Function SendActivityAsync (activityJSON As String) As Task(Of String)

Parameters

activityJSON
String

Activity to send as a serialized JSON object

Returns

A task object representing the asynchronous operation.

Remarks

The task completes when the client receives a confirmation from Direct Line Speech service that the Direct Line Speech service received the Activity string. This does _not_ indicate that the Bot received the Activity string.

When the task completes, the return string value contains the Session ID GUID. You can use this Session ID GUID to connect client application events with Bot traffic. This Session ID GUID is part of the Activity payload the Bot gets from the Direct Line Speech service.

Applies to