View Source
Class RecurringBackgroundJobHostedServiceRunner
A hosted service that discovers and starts hosted services for any recurring background jobs in the DI container.
Inheritance
System.Object
Assembly: Umbraco.Infrastructure.dll
Syntax
public class RecurringBackgroundJobHostedServiceRunner : IHostedService
Constructors
View Source
RecurringBackgroundJobHostedServiceRunner(ILogger<RecurringBackgroundJobHostedServiceRunner>, IEnumerable<IRecurringBackgroundJob>, Func<IRecurringBackgroundJob, IHostedService>)
Declaration
public RecurringBackgroundJobHostedServiceRunner(ILogger<RecurringBackgroundJobHostedServiceRunner> logger, IEnumerable<IRecurringBackgroundJob> jobs, Func<IRecurringBackgroundJob, IHostedService> jobFactory)
Parameters
Methods
View Source
StartAsync(CancellationToken)
Declaration
public async Task StartAsync(CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
CancellationToken |
cancellationToken |
|
Returns
View Source
StopAsync(CancellationToken)
Declaration
public async Task StopAsync(CancellationToken stoppingToken)
Parameters
Type |
Name |
Description |
CancellationToken |
stoppingToken |
|
Returns