QueueStorage.QueueActivityAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Enqueues an Activity for later processing. The visibility timeout specifies how long the message should be invisible to Dequeue and Peek operations.
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)
Parameters
Visibility timeout. Optional with a default value of 0. Cannot be larger than 7 days.
- cancellationToken
- CancellationToken
Cancellation token for the async operation.
Returns
A result string.