Taal

Conversations.ReplyToActivityWithHttpMessagesAsync Methode

Definitie

Overloads

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>>
override this.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

Retouren

Task<Microsoft.Rest.HttpOperationResponse<ResourceResponse>>

Implementeringen

Van toepassing op

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>>
override this.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>>

Headers die op verzoek worden toegevoegd.

cancellationToken
CancellationToken

Het annuleringstoken.

Retouren

Task<Microsoft.Rest.HttpOperationResponse<ResourceResponse>>

Een responsobject met de responsbody en responsheaders.

Implementeringen

Uitzonderingen

Wordt gegooid wanneer de operatie een ongeldige statuscode teruggeeft.

Microsoft.Rest.SerializationException

Ze worden weggegooid als je de reactie niet kan verwoorden.

Microsoft.Rest.ValidationException

Wordt gegooid wanneer een invoerwaarde niet overeenkomt met het verwachte datatype, bereik of patroon.

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