Class QueuedHostedService
A queue based hosted service used to executing tasks on a background thread.
Inheritance
System.Object
Assembly: cs.temp.dll.dll
Syntax
public class QueuedHostedService : BackgroundService
Constructors
QueuedHostedService(IBackgroundTaskQueue, ILogger<QueuedHostedService>)
Declaration
public QueuedHostedService(IBackgroundTaskQueue taskQueue, ILogger<QueuedHostedService> logger)
Parameters
Properties
TaskQueue
Declaration
public IBackgroundTaskQueue TaskQueue { get; }
Property Value
Methods
ExecuteAsync(CancellationToken)
Declaration
protected override async Task ExecuteAsync(CancellationToken stoppingToken)
Parameters
Type |
Name |
Description |
CancellationToken |
stoppingToken |
|
Returns
StopAsync(CancellationToken)
Declaration
public override async Task StopAsync(CancellationToken stoppingToken)
Parameters
Type |
Name |
Description |
CancellationToken |
stoppingToken |
|
Returns