Table of Contents

Class PeriodicJobBase

Namespace
The.Web.Jobs
Assembly
Instagile.Web.Client.dll
public abstract class PeriodicJobBase : JobBase, IHostedService, IDisposable
Inheritance
PeriodicJobBase
Implements
Derived
Inherited Members

Constructors

PeriodicJobBase(StartupRequirements, JobParameters, Period)

protected PeriodicJobBase(StartupRequirements startupRequirements, JobParameters parameters, Period period)

Parameters

startupRequirements StartupRequirements
parameters JobParameters
period Period

Properties

Period

public Period Period { get; }

Property Value

Period

Methods

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.

protected override sealed Task ExecuteAsync(CancellationToken stoppingToken)

Parameters

stoppingToken CancellationToken

Triggered when StopAsync(CancellationToken) is called.

Returns

Task

A Task that represents the long running operations.

Remarks

See Worker Services in .NET for implementation guidelines.