IConversations.ReplyToActivityWithHttpMessagesAsync Methode
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Overloads
ReplyToActivityWithHttpMessagesAsync(String, String, Activity, Dictionary<String,List<String>>, CancellationToken)
ReplyToActivity.
public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Bot.Schema.ResourceResponse>> ReplyToActivityWithHttpMessagesAsync(string conversationId, string activityId, Microsoft.Bot.Schema.Activity activity, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member ReplyToActivityWithHttpMessagesAsync : string * string * Microsoft.Bot.Schema.Activity * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Bot.Schema.ResourceResponse>>
Public Function ReplyToActivityWithHttpMessagesAsync (conversationId As String, activityId As String, activity As Activity, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpOperationResponse(Of ResourceResponse))
Parameters
- conversationId
- String
Gespreks-id.
- activityId
- String
activityid is het antwoord op (OPTIONEEL).
- activity
- Activity
Activiteit om te sturen.
- customHeaders
- Dictionary<String,List<String>>
De headers die op verzoek worden toegevoegd.
- cancellationToken
- CancellationToken
Het annuleringstoken.
Retouren
Een taak die de vertegenwoordigt Microsoft.Rest.HttpOperationResponse.
Uitzonderingen
Wordt gegooid wanneer de operatie een ongeldige statuscode teruggeeft.
Ze worden weggegooid als je de reactie niet kan verwoorden.
Wordt gegooid wanneer een vereiste parameter null is.
Opmerkingen
Met deze methode kunt u reageren op een activiteit.
Dit verschilt enigszins van SendToConversation(). * SendToConversation(conversationId) - voegt de activiteit toe aan het einde van het gesprek volgens de tijdstempel of semantiek van het kanaal. * ReplyToActivity(conversationId,ActivityId) - voegt de activiteit toe als een antwoord op een andere activiteit, als het kanaal dit ondersteunt. Als het kanaal geen ondersteuning biedt voor geneste antwoorden, valt ReplyToActivity terug op SendToConversation.
Gebruik ReplyToActivity bij het beantwoorden van een specifieke activiteit in het gesprek.
Gebruik SendToConversation in alle andere gevallen.
Van toepassing op
ReplyToActivityWithHttpMessagesAsync(String, String, Activity, Dictionary<String,List<String>>, CancellationToken)
public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Bot.Connector.ResourceResponse>> ReplyToActivityWithHttpMessagesAsync(string conversationId, string activityId, Microsoft.Bot.Connector.Activity activity, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member ReplyToActivityWithHttpMessagesAsync : string * string * Microsoft.Bot.Connector.Activity * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Bot.Connector.ResourceResponse>>
Public Function ReplyToActivityWithHttpMessagesAsync (conversationId As String, activityId As String, activity As Activity, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpOperationResponse(Of ResourceResponse))
Parameters
- conversationId
- String
- activityId
- String
- activity
- Activity
- customHeaders
- Dictionary<String,List<String>>
- cancellationToken
- CancellationToken