Search Results for

    Show / Hide Table of Contents
    View Source

    Class RecurringBackgroundJobHostedService<TJob>

    Runs a recurring background job inside a hosted service. Generic version for DependencyInjection

    Inheritance
    System.Object
    RecurringHostedServiceBase
    Namespace: Umbraco.Cms.Infrastructure.BackgroundJobs
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public class RecurringBackgroundJobHostedService<TJob> : RecurringHostedServiceBase where TJob : IRecurringBackgroundJob
    Type Parameters
    Name Description
    TJob

    Type of the Job

    Constructors

    View Source

    RecurringBackgroundJobHostedService(IRuntimeState, ILogger<RecurringBackgroundJobHostedService<TJob>>, IMainDom, IServerRoleAccessor, IEventAggregator, TJob)

    Declaration
    public RecurringBackgroundJobHostedService(IRuntimeState runtimeState, ILogger<RecurringBackgroundJobHostedService<TJob>> logger, IMainDom mainDom, IServerRoleAccessor serverRoleAccessor, IEventAggregator eventAggregator, TJob job)
    Parameters
    Type Name Description
    IRuntimeState runtimeState
    ILogger<RecurringBackgroundJobHostedService<TJob>> logger
    IMainDom mainDom
    IServerRoleAccessor serverRoleAccessor
    IEventAggregator eventAggregator
    TJob job

    Methods

    View Source

    PerformExecuteAsync(Object)

    Declaration
    public override async Task PerformExecuteAsync(object state)
    Parameters
    Type Name Description
    System.Object state
    Returns
    Type Description
    Task
    View Source

    StartAsync(CancellationToken)

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

    StopAsync(CancellationToken)

    Declaration
    public override async Task StopAsync(CancellationToken cancellationToken)
    Parameters
    Type Name Description
    CancellationToken cancellationToken
    Returns
    Type Description
    Task
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • RecurringBackgroundJobHostedService(IRuntimeState, ILogger<RecurringBackgroundJobHostedService<TJob>>, IMainDom, IServerRoleAccessor, IEventAggregator, TJob)
    • Methods
      • PerformExecuteAsync(Object)
      • StartAsync(CancellationToken)
      • StopAsync(CancellationToken)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX