BotFrameworkClient.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
PostActivityAsync(String, String, Uri, Uri, String, Activity, CancellationToken) |
Leitet eine Aktivität an einen Skill (Bot) weiter. |
PostActivityAsync<T>(String, String, Uri, Uri, String, Activity, CancellationToken) |
Leitet eine Aktivität an einen Skill (Bot) weiter. |
PostActivityAsync(String, String, Uri, Uri, String, Activity, CancellationToken)
Leitet eine Aktivität an einen Skill (Bot) weiter.
public virtual 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);
abstract member PostActivityAsync : string * string * Uri * Uri * string * Microsoft.Bot.Schema.Activity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.InvokeResponse>
override this.PostActivityAsync : string * string * Uri * Uri * string * Microsoft.Bot.Schema.Activity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.InvokeResponse>
Public Overridable 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 Skillhost.
- conversationId
- String
Eine Konversations-ID, die für die Unterhaltung mit dem Skill verwendet werden soll.
- cancellationToken
- CancellationToken
Abbruchtoken.
Gibt zurück
Asynchrone Aufgabe mit optionalem invokeResponse.
Hinweise
HINWEIS: Durch das Weiterleiten einer Aktivität an einen Skill werden UserState- und ConversationState-Änderungen geleert, sodass der Skill einen genauen Zustand aufweist.
Gilt für:
PostActivityAsync<T>(String, String, Uri, Uri, String, Activity, CancellationToken)
Leitet eine Aktivität an einen Skill (Bot) weiter.
public abstract 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);
abstract member PostActivityAsync : string * string * Uri * Uri * string * Microsoft.Bot.Schema.Activity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.InvokeResponse<'T>>
Public MustOverride 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 Typ des Texts in 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 Skillhost.
- conversationId
- String
Eine Konversations-ID, die für die Unterhaltung mit dem Skill verwendet werden soll.
- cancellationToken
- CancellationToken
Abbruchtoken.
Gibt zurück
Asynchrone Aufgabe mit optionalem invokeResponse.
Hinweise
HINWEIS: Durch das Weiterleiten einer Aktivität an einen Skill werden UserState- und ConversationState-Änderungen geleert, sodass der Skill einen genauen Zustand aufweist.