Search Results for

    Show / Hide Table of Contents

    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: cs.temp.dll.dll
    Syntax
    public class TouchServerTask : RecurringHostedServiceBase, IDisposable

    Constructors

    TouchServerTask(IRuntimeState, IServerRegistrationService, IHostingEnvironment, ILogger<TouchServerTask>, IOptions<GlobalSettings>)

    Declaration
    [Obsolete("Use constructor that takes an IServerRoleAccessor")]
    public TouchServerTask(IRuntimeState runtimeState, IServerRegistrationService serverRegistrationService, IHostingEnvironment hostingEnvironment, ILogger<TouchServerTask> logger, IOptions<GlobalSettings> globalSettings)
    Parameters
    Type Name Description
    IRuntimeState runtimeState
    IServerRegistrationService serverRegistrationService
    IHostingEnvironment hostingEnvironment
    ILogger<TouchServerTask> logger
    IOptions<GlobalSettings> globalSettings

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

    Initializes a new instance of the TouchServerTask class.

    Declaration
    public TouchServerTask(IRuntimeState runtimeState, IServerRegistrationService serverRegistrationService, IHostingEnvironment hostingEnvironment, ILogger<TouchServerTask> logger, IOptions<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
    ILogger<TouchServerTask> logger

    The typed logger.

    IOptions<GlobalSettings> globalSettings

    The configuration for global settings.

    IServerRoleAccessor serverRoleAccessor

    Methods

    PerformExecuteAsync(Object)

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