Search Results for

    Show / Hide Table of Contents

    Class RecurringHostedServiceBase

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Infrastructure.HostedServices
    Assembly: cs.temp.dll.dll
    Syntax
    public abstract class RecurringHostedServiceBase : IHostedService, IDisposable

    Constructors

    RecurringHostedServiceBase(ILogger, TimeSpan, TimeSpan)

    Initializes a new instance of the RecurringHostedServiceBase class.

    Declaration
    protected RecurringHostedServiceBase(ILogger logger, TimeSpan period, TimeSpan delay)
    Parameters
    Type Name Description
    ILogger logger

    Logger.

    System.TimeSpan period

    Timespan representing how often the task should recur.

    System.TimeSpan delay

    Timespan representing the initial delay after application start-up before the first run of the task occurs.

    RecurringHostedServiceBase(TimeSpan, TimeSpan)

    Declaration
    [Obsolete("Please use constructor that takes an ILogger instead")]
    protected RecurringHostedServiceBase(TimeSpan period, TimeSpan delay)
    Parameters
    Type Name Description
    System.TimeSpan period
    System.TimeSpan delay

    Fields

    DefaultDelay

    The default delay to use for recurring tasks for the first run after application start-up if no alternative is configured.

    Declaration
    protected static readonly TimeSpan DefaultDelay
    Field Value
    Type Description
    System.TimeSpan

    Methods

    Dispose()

    Declaration
    public void Dispose()

    Dispose(Boolean)

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing

    ExecuteAsync(Object)

    Executes the task.

    Declaration
    public async void ExecuteAsync(object state)
    Parameters
    Type Name Description
    System.Object state

    The task state.

    PerformExecuteAsync(Object)

    Declaration
    public abstract Task PerformExecuteAsync(object state)
    Parameters
    Type Name Description
    System.Object state
    Returns
    Type Description
    Task

    StartAsync(CancellationToken)

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

    StopAsync(CancellationToken)

    Declaration
    public Task StopAsync(CancellationToken cancellationToken)
    Parameters
    Type Name Description
    CancellationToken cancellationToken
    Returns
    Type Description
    Task
    In This Article
    • Constructors
      • RecurringHostedServiceBase(ILogger, TimeSpan, TimeSpan)
      • RecurringHostedServiceBase(TimeSpan, TimeSpan)
    • Fields
      • DefaultDelay
    • Methods
      • Dispose()
      • Dispose(Boolean)
      • ExecuteAsync(Object)
      • PerformExecuteAsync(Object)
      • StartAsync(CancellationToken)
      • StopAsync(CancellationToken)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX