IBackgroundTaskQueue Interface
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.
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. |