Show / Hide Table of Contents

Class NotifierWorker

Inheritance
object
BackgroundService
NotifierWorker
Implements
IHostedService
IDisposable
Inherited Members
BackgroundService.Dispose()
BackgroundService.StartAsync(CancellationToken)
BackgroundService.StopAsync(CancellationToken)
BackgroundService.ExecuteTask
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: NotifyHub.NotificationService.Infrastructure.Jobs
Assembly: NotifyHub.NotificationService.Infrastructure.dll
Syntax
public class NotifierWorker : BackgroundService, IHostedService, IDisposable

Methods

| Edit this page View Source

ExecuteAsync(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
BackgroundService.ExecuteAsync(CancellationToken)
Remarks

See Worker Services in .NET for implementation guidelines.

Implements

IHostedService
IDisposable
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX