Class NotifierWorker
Inherited Members
Namespace: NotifyHub.NotificationService.Infrastructure.Jobs
Assembly: NotifyHub.NotificationService.Infrastructure.dll
Syntax
public class NotifierWorker : BackgroundService, IHostedService, IDisposable
Methods
| Edit this page View SourceExecuteAsync(CancellationToken)
This method is called when the IHostedService starts. The implementation should return a task that represents the lifetime of the long running operation(s) being performed.
Declaration
protected override Task ExecuteAsync(CancellationToken stoppingToken)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | stoppingToken | Triggered when StopAsync(CancellationToken) is called. |
Returns
Type | Description |
---|---|
Task | A Task that represents the long running operations. |
Overrides
Remarks
See Worker Services in .NET for implementation guidelines.