Search Results for

    Show / Hide Table of Contents
    View Source

    Class TouchServerTask

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

    Inheritance
    System.Object
    RecurringHostedServiceBase
    Namespace: Umbraco.Cms.Infrastructure.HostedServices.ServerRegistration
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public class TouchServerTask : RecurringHostedServiceBase

    Constructors

    View Source

    TouchServerTask(IRuntimeState, IServerRegistrationService, IHostingEnvironment, ILogger<TouchServerTask>, IOptionsMonitor<GlobalSettings>, IServerRoleAccessor)

    Initializes a new instance of the TouchServerTask class.

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

    Representation of the state of the Umbraco runtime.

    IServerRegistrationService serverRegistrationService

    Services for server registrations.

    IHostingEnvironment hostingEnvironment

    The hostingEnviroment.

    ILogger<TouchServerTask> logger

    The typed logger.

    IOptionsMonitor<GlobalSettings> globalSettings

    The configuration for global settings.

    IServerRoleAccessor serverRoleAccessor

    The accessor for the server role

    Methods

    View Source

    PerformExecuteAsync(Object)

    Declaration
    public override Task PerformExecuteAsync(object state)
    Parameters
    Type Name Description
    System.Object state
    Returns
    Type Description
    Task
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • TouchServerTask(IRuntimeState, IServerRegistrationService, IHostingEnvironment, ILogger<TouchServerTask>, IOptionsMonitor<GlobalSettings>, IServerRoleAccessor)
    • Methods
      • PerformExecuteAsync(Object)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX