Search Results for

    Show / Hide Table of Contents
    View Source

    Class KeepAliveJob

    Hosted service implementation for keep alive feature.

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Infrastructure.BackgroundJobs.Jobs
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public class KeepAliveJob : IRecurringBackgroundJob

    Constructors

    View Source

    KeepAliveJob(IHostingEnvironment, IOptionsMonitor<KeepAliveSettings>, ILogger<KeepAliveJob>, IProfilingLogger, IHttpClientFactory)

    Initializes a new instance of the KeepAliveJob class.

    Declaration
    public KeepAliveJob(IHostingEnvironment hostingEnvironment, IOptionsMonitor<KeepAliveSettings> keepAliveSettings, ILogger<KeepAliveJob> logger, IProfilingLogger profilingLogger, IHttpClientFactory httpClientFactory)
    Parameters
    Type Name Description
    IHostingEnvironment hostingEnvironment

    The current hosting environment

    IOptionsMonitor<KeepAliveSettings> keepAliveSettings

    The configuration for keep alive settings.

    ILogger<KeepAliveJob> logger

    The typed logger.

    IProfilingLogger profilingLogger

    The profiling logger.

    IHttpClientFactory httpClientFactory

    Factory for instances.

    Properties

    View Source

    Period

    Declaration
    public TimeSpan Period { get; }
    Property Value
    Type Description
    TimeSpan

    Methods

    View Source

    RunJobAsync()

    Declaration
    public async Task RunJobAsync()
    Returns
    Type Description
    Task

    Events

    View Source

    PeriodChanged

    Declaration
    public event EventHandler PeriodChanged
    Event Type
    Type Description
    EventHandler
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • KeepAliveJob(IHostingEnvironment, IOptionsMonitor<KeepAliveSettings>, ILogger<KeepAliveJob>, IProfilingLogger, IHttpClientFactory)
    • Properties
      • Period
    • Methods
      • RunJobAsync()
    • Events
      • PeriodChanged
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX