DialogServiceConnector.SendActivityAsync(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應