Class StartupJobBase
public abstract class StartupJobBase : JobBase, IHostedService, IDisposable
- Inheritance
-
StartupJobBase
- Implements
- Derived
- Inherited Members
Constructors
StartupJobBase(JobParameters)
protected StartupJobBase(JobParameters parameters)
Parameters
parametersJobParameters
Properties
Complete
public Task Complete { get; }
Property Value
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
stoppingTokenCancellationTokenTriggered when StopAsync(CancellationToken) is called.
Returns
Remarks
See Worker Services in .NET for implementation guidelines.