BackgroundTaskQueue Class

Definition

Singleton queue, used to transfer a work item to the HostedTaskService.

C#
public class BackgroundTaskQueue : Microsoft.Agents.Hosting.AspNetCore.BackgroundQueue.IBackgroundTaskQueue
Inheritance
BackgroundTaskQueue
Implements

Constructors

Methods

DequeueAsync(CancellationToken)

Wait for a signal of an enqueued work item to be processed.

QueueBackgroundWorkItem(Func<CancellationToken,Task>)

Enqueue a work item to be processed on a background thread.

Applies to

Product Versions
Microsoft 365 Agents SDK .NET 1