다음을 통해 공유


IBackgroundTaskQueue Interface

Definition

Interface for a class used to transfer a work item to the Microsoft.Agents.Hosting.AspNetCore.BackgroundQueue.HostedTaskService.

public interface IBackgroundTaskQueue
type IBackgroundTaskQueue = interface
Public Interface IBackgroundTaskQueue

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