Delen via


BotFrameworkClient.PostActivityAsync Methode

Definitie

Overloads

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

Stuurt een activiteit door naar een vaardigheid (bot).

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

Stuurt een activiteit door naar een vaardigheid (bot).

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

Stuurt een activiteit door naar een vaardigheid (bot).

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)

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 vaardigheidshost.

conversationId
String

Een gespreks-id die moet worden gebruikt voor het gesprek met de vaardigheid.

activity
Activity

De Activity om te verzenden naar doorsturen.

cancellationToken
CancellationToken

annuleringstoken.

Retouren

Asynchrone taak met optionele invokeResponse.

Opmerkingen

OPMERKING: Als u een activiteit doorstuurt naar een vaardigheid, worden wijzigingen in UserState en ConversationState gewist, zodat de vaardigheid een nauwkeurige status heeft.

Van toepassing op

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

Stuurt een activiteit door naar een vaardigheid (bot).

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))

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 vaardigheidshost.

conversationId
String

Een gespreks-id die moet worden gebruikt voor het gesprek met de vaardigheid.

activity
Activity

De Activity om te verzenden naar doorsturen.

cancellationToken
CancellationToken

annuleringstoken.

Retouren

Asynchrone taak met optionele invokeResponse.

Opmerkingen

OPMERKING: Als u een activiteit doorstuurt naar een vaardigheid, worden wijzigingen in UserState en ConversationState gewist, zodat de vaardigheid een nauwkeurige status heeft.

Van toepassing op