Search Results for

    Show / Hide Table of Contents
    View Source

    Class TouchServerJob

    Implements periodic server "touching" (to mark as active/deactive) as a hosted service.

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

    Constructors

    View Source

    TouchServerJob(IServerRegistrationService, IHostingEnvironment, ILogger<TouchServerJob>, IOptionsMonitor<GlobalSettings>, IServerRoleAccessor)

    Initializes a new instance of the TouchServerJob class.

    Declaration
    public TouchServerJob(IServerRegistrationService serverRegistrationService, IHostingEnvironment hostingEnvironment, ILogger<TouchServerJob> logger, IOptionsMonitor<GlobalSettings> globalSettings, IServerRoleAccessor serverRoleAccessor)
    Parameters
    Type Name Description
    IServerRegistrationService serverRegistrationService

    Services for server registrations.

    IHostingEnvironment hostingEnvironment

    The hostingEnviroment.

    ILogger<TouchServerJob> logger

    The typed logger.

    IOptionsMonitor<GlobalSettings> globalSettings

    The configuration for global settings.

    IServerRoleAccessor serverRoleAccessor

    The accessor for the server role

    Properties

    View Source

    Delay

    Declaration
    public TimeSpan Delay { get; }
    Property Value
    Type Description
    TimeSpan
    View Source

    Period

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

    ServerRoles

    Declaration
    public ServerRole[] ServerRoles { get; }
    Property Value
    Type Description
    ServerRole[]

    Methods

    View Source

    RunJobAsync()

    Declaration
    public 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
      • TouchServerJob(IServerRegistrationService, IHostingEnvironment, ILogger<TouchServerJob>, IOptionsMonitor<GlobalSettings>, IServerRoleAccessor)
    • Properties
      • Delay
      • Period
      • ServerRoles
    • Methods
      • RunJobAsync()
    • Events
      • PeriodChanged
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX