Sprache

BotFrameworkClient.PostActivityAsync Methode

Definition

Überlädt

Name Beschreibung
PostActivityAsync(String, String, Uri, Uri, String, Activity, CancellationToken)

Leitet eine Aktivität an eine Fähigkeit (Bot) weiter.

PostActivityAsync<T>(String, String, Uri, Uri, String, Activity, CancellationToken)

Leitet eine Aktivität an eine Fähigkeit (Bot) weiter.

PostActivityAsync(String, String, Uri, Uri, String, Activity, CancellationToken)

Leitet eine Aktivität an eine Fähigkeit (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 Qualifikationshost.

conversationId
String

Eine Unterhaltungs-ID, die für die Unterhaltung mit den Fähigkeiten verwendet werden soll.

activity
Activity

Die Activity, die weitergeleitet werden soll.

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, String, Uri, Uri, String, Activity, CancellationToken)

Leitet eine Aktivität an eine Fähigkeit (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 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

Die Activity, die weitergeleitet werden soll.

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: