Search Results for

    Show / Hide Table of Contents
    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
    Namespace: Umbraco.Cms.Infrastructure.BackgroundJobs
    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
    Type Name Description
    ILogger<RecurringBackgroundJobHostedServiceRunner> logger
    IEnumerable<IRecurringBackgroundJob> jobs
    Func<IRecurringBackgroundJob, IHostedService> jobFactory

    Methods

    View Source

    StartAsync(CancellationToken)

    Declaration
    public async Task StartAsync(CancellationToken cancellationToken)
    Parameters
    Type Name Description
    CancellationToken cancellationToken
    Returns
    Type Description
    Task
    View Source

    StopAsync(CancellationToken)

    Declaration
    public async Task StopAsync(CancellationToken stoppingToken)
    Parameters
    Type Name Description
    CancellationToken stoppingToken
    Returns
    Type Description
    Task
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • RecurringBackgroundJobHostedServiceRunner(ILogger<RecurringBackgroundJobHostedServiceRunner>, IEnumerable<IRecurringBackgroundJob>, Func<IRecurringBackgroundJob, IHostedService>)
    • Methods
      • StartAsync(CancellationToken)
      • StopAsync(CancellationToken)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX