QueueStorage.QueueActivityAsync Methode

Definition

Quediert eine Aktivität für die spätere Verarbeitung. Das Sichtbarkeitstimeout gibt an, wie lange die Nachricht für Dequeue- und Peek-Vorgänge unsichtbar sein soll.

public abstract System.Threading.Tasks.Task<string> QueueActivityAsync (Microsoft.Bot.Schema.Activity activity, TimeSpan? visibilityTimeout = default, TimeSpan? timeToLive = default, System.Threading.CancellationToken cancellationToken = default);
abstract member QueueActivityAsync : Microsoft.Bot.Schema.Activity * Nullable<TimeSpan> * Nullable<TimeSpan> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public MustOverride Function QueueActivityAsync (activity As Activity, Optional visibilityTimeout As Nullable(Of TimeSpan) = Nothing, Optional timeToLive As Nullable(Of TimeSpan) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of String)

Parameter

activity
Activity

Der Activity , der für die spätere Verarbeitung in die Warteschlange eingereiht werden soll.

visibilityTimeout
Nullable<TimeSpan>

Sichtbarkeitstimeout. Optional mit dem Standardwert 0. Darf nicht größer als 7 Tage sein.

timeToLive
Nullable<TimeSpan>

Gibt das Zeit-bis-Live-Intervall für die Nachricht an.

cancellationToken
CancellationToken

Abbruchtoken für den asynchronen Vorgang.

Gibt zurück

Eine Ergebniszeichenfolge.

Gilt für: