BotFrameworkHttpClient.PostActivityAsync 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
| PostActivityAsync(String, Uri, Activity, CancellationToken) |
Post Activity naar de bot met behulp van de referenties van de bot. |
| PostActivityAsync(String, String, Uri, Uri, String, Activity, CancellationToken) |
Stuurt een activiteit door naar een vaardigheid (bot). |
| PostActivityAsync<T>(String, Uri, Activity, CancellationToken) |
Post Activity naar de bot met behulp van de referenties van de bot. |
| PostActivityAsync<T>(String, String, Uri, Uri, String, Activity, CancellationToken) |
Stuurt een activiteit door naar een vaardigheid (bot). |
PostActivityAsync(String, Uri, Activity, CancellationToken)
Post Activity naar de bot met behulp van de referenties van de bot.
public virtual System.Threading.Tasks.Task<Microsoft.Bot.Builder.InvokeResponse> PostActivityAsync(string botId, Uri botEndpoint, Microsoft.Bot.Schema.Activity activity, System.Threading.CancellationToken cancellationToken = default);
override this.PostActivityAsync : string * Uri * Microsoft.Bot.Schema.Activity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.InvokeResponse>
Public Overridable Function PostActivityAsync (botId As String, botEndpoint As Uri, activity As Activity, Optional cancellationToken As CancellationToken = Nothing) As Task(Of InvokeResponse)
Parameters
- botId
- String
De MicrosoftAppId van de bot.
- botEndpoint
- Uri
De URL van de bot.
- activity
- Activity
activiteit die moet worden geplaatst.
- cancellationToken
- CancellationToken
Annuleringstoken.
Retouren
InvokeResponse.
Van toepassing op
PostActivityAsync(String, String, Uri, Uri, String, Activity, CancellationToken)
Stuurt een activiteit door naar een vaardigheid (bot).
public override System.Threading.Tasks.Task<Microsoft.Bot.Builder.InvokeResponse> PostActivityAsync(string fromBotId, string toBotId, Uri toUrl, Uri serviceUrl, string conversationId, Microsoft.Bot.Schema.Activity activity, System.Threading.CancellationToken cancellationToken = default);
override this.PostActivityAsync : string * string * Uri * Uri * string * Microsoft.Bot.Schema.Activity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.InvokeResponse>
Public Overrides Function PostActivityAsync (fromBotId As String, toBotId As String, toUrl As Uri, serviceUrl As Uri, conversationId As String, activity As Activity, Optional cancellationToken As CancellationToken = Nothing) As Task(Of InvokeResponse)
Parameters
- fromBotId
- String
De MicrosoftAppId van de bot die de activiteit verzendt.
- toBotId
- String
De MicrosoftAppId van de bot die de activiteit ontvangt.
- toUrl
- Uri
De URL van de bot die de activiteit ontvangt.
- serviceUrl
- Uri
De callback-URL voor de host van de vaardigheid.
- conversationId
- String
Een gespreks-id die moet worden gebruikt voor het gesprek met de vaardigheid.
- activity
- Activity
activiteit om door te sturen.
- cancellationToken
- CancellationToken
annuleringstoken.
Retouren
Asynchrone taak met optionele invokeResponse.
Opmerkingen
OPMERKING: als u een activiteit doorstuurt naar een vaardigheid, worden UserState en ConversationState-wijzigingen gewist, zodat deze vaardigheid een nauwkeurige status heeft.
Van toepassing op
PostActivityAsync<T>(String, Uri, Activity, CancellationToken)
Post Activity naar de bot met behulp van de referenties van de bot.
public virtual System.Threading.Tasks.Task<Microsoft.Bot.Builder.InvokeResponse<T>> PostActivityAsync<T>(string botId, Uri botEndpoint, Microsoft.Bot.Schema.Activity activity, System.Threading.CancellationToken cancellationToken = default);
override this.PostActivityAsync : string * Uri * Microsoft.Bot.Schema.Activity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.InvokeResponse<'T>>
Public Overridable Function PostActivityAsync(Of T) (botId As String, botEndpoint As Uri, activity As Activity, Optional cancellationToken As CancellationToken = Nothing) As Task(Of InvokeResponse(Of T))
Type parameters
- T
type invokeResponse-hoofdtekst.
Parameters
- botId
- String
De MicrosoftAppId van de bot.
- botEndpoint
- Uri
De URL van de bot.
- activity
- Activity
activiteit die moet worden geplaatst.
- cancellationToken
- CancellationToken
Annuleringstoken.
Retouren
InvokeResponseT.
Van toepassing op
PostActivityAsync<T>(String, String, Uri, Uri, String, Activity, CancellationToken)
Stuurt een activiteit door naar een vaardigheid (bot).
public override System.Threading.Tasks.Task<Microsoft.Bot.Builder.InvokeResponse<T>> PostActivityAsync<T>(string fromBotId, string toBotId, Uri toUrl, Uri serviceUrl, string conversationId, Microsoft.Bot.Schema.Activity activity, System.Threading.CancellationToken cancellationToken = default);
override this.PostActivityAsync : string * string * Uri * Uri * string * Microsoft.Bot.Schema.Activity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.InvokeResponse<'T>>
Public Overrides Function PostActivityAsync(Of T) (fromBotId As String, toBotId As String, toUrl As Uri, serviceUrl As Uri, conversationId As String, activity As Activity, Optional cancellationToken As CancellationToken = Nothing) As Task(Of InvokeResponse(Of T))
Type parameters
- T
Het type hoofdtekst in InvokeResponse.
Parameters
- fromBotId
- String
De MicrosoftAppId van de bot die de activiteit verzendt.
- toBotId
- String
De MicrosoftAppId van de bot die de activiteit ontvangt.
- toUrl
- Uri
De URL van de bot die de activiteit ontvangt.
- serviceUrl
- Uri
De callback-URL voor de host van de vaardigheid.
- conversationId
- String
Een gespreks-id die moet worden gebruikt voor het gesprek met de vaardigheid.
- activity
- Activity
activiteit om door te sturen.
- cancellationToken
- CancellationToken
annuleringstoken.
Retouren
Asynchrone taak met optionele invokeResponseT.
Opmerkingen
OPMERKING: als u een activiteit doorstuurt naar een vaardigheid, worden UserState en ConversationState-wijzigingen gewist, zodat deze vaardigheid een nauwkeurige status heeft.