BotFrameworkHttpClient.PostActivityAsync Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Überlädt
| Name | Beschreibung |
|---|---|
| PostActivityAsync(String, Uri, Activity, CancellationToken) |
Posten Sie "Aktivität" im Bot, indem Sie die Anmeldeinformationen des Bots verwenden. |
| PostActivityAsync(String, String, Uri, Uri, String, Activity, CancellationToken) |
Leitet eine Aktivität an eine Fähigkeit (Bot) weiter. |
| PostActivityAsync<T>(String, Uri, Activity, CancellationToken) |
Posten Sie "Aktivität" im Bot, indem Sie die Anmeldeinformationen des Bots verwenden. |
| PostActivityAsync<T>(String, String, Uri, Uri, String, Activity, CancellationToken) |
Leitet eine Aktivität an eine Fähigkeit (Bot) weiter. |
PostActivityAsync(String, Uri, Activity, CancellationToken)
Posten Sie "Aktivität" im Bot, indem Sie die Anmeldeinformationen des Bots verwenden.
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)
Parameter
- botId
- String
Die MicrosoftAppId des Bots.
- botEndpoint
- Uri
Die URL des Bots.
- activity
- Activity
Aktivität zum Posten.
- cancellationToken
- CancellationToken
Abbruchtoken.
Gibt zurück
InvokeResponse.
Gilt für:
PostActivityAsync(String, String, Uri, Uri, String, Activity, CancellationToken)
Leitet eine Aktivität an eine Fähigkeit (Bot) weiter.
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)
Parameter
- fromBotId
- String
Die MicrosoftAppId des Bots, der die Aktivität sendet.
- toBotId
- String
Die MicrosoftAppId des Bots, der die Aktivität empfängt.
- toUrl
- Uri
Die URL des Bots, der die Aktivität empfängt.
- serviceUrl
- Uri
Die Rückruf-URL für den Qualifikationshost.
- conversationId
- String
Eine Unterhaltungs-ID, die für die Unterhaltung mit den Fähigkeiten verwendet werden soll.
- activity
- Activity
Aktivitäten, die weitergeleitet werden sollen.
- cancellationToken
- CancellationToken
Abbruch-Token.
Gibt zurück
Asynchrone Aufgabe mit optionaler invokeResponse.
Hinweise
HINWEIS: Durch das Weiterleiten einer Aktivität an eine Fähigkeit werden UserState- und ConversationState-Änderungen geleert, sodass die Fähigkeit einen genauen Zustand aufweist.
Gilt für:
PostActivityAsync<T>(String, Uri, Activity, CancellationToken)
Posten Sie "Aktivität" im Bot, indem Sie die Anmeldeinformationen des Bots verwenden.
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))
Typparameter
- T
Art des invokeResponse-Körpers.
Parameter
- botId
- String
Die MicrosoftAppId des Bots.
- botEndpoint
- Uri
Die URL des Bots.
- activity
- Activity
Aktivität zum Posten.
- cancellationToken
- CancellationToken
Abbruchtoken.
Gibt zurück
InvokeResponseT.
Gilt für:
PostActivityAsync<T>(String, String, Uri, Uri, String, Activity, CancellationToken)
Leitet eine Aktivität an eine Fähigkeit (Bot) weiter.
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))
Typparameter
- T
Der Körpertyp in der InvokeResponse.
Parameter
- fromBotId
- String
Die MicrosoftAppId des Bots, der die Aktivität sendet.
- toBotId
- String
Die MicrosoftAppId des Bots, der die Aktivität empfängt.
- toUrl
- Uri
Die URL des Bots, der die Aktivität empfängt.
- serviceUrl
- Uri
Die Rückruf-URL für den Qualifikationshost.
- conversationId
- String
Eine Unterhaltungs-ID, die für die Unterhaltung mit den Fähigkeiten verwendet werden soll.
- activity
- Activity
Aktivitäten, die weitergeleitet werden sollen.
- cancellationToken
- CancellationToken
Abbruch-Token.
Gibt zurück
Asynchrone Aufgabe mit optionaler invokeResponseT.
Hinweise
HINWEIS: Durch das Weiterleiten einer Aktivität an eine Fähigkeit werden UserState- und ConversationState-Änderungen geleert, sodass die Fähigkeit einen genauen Zustand aufweist.