Class TouchServerTask
Implements periodic server "touching" (to mark as active/deactive) as a hosted service.
Namespace: Umbraco.Cms.Infrastructure.HostedServices.ServerRegistration
Assembly: Umbraco.Infrastructure.dll
Syntax
public class TouchServerTask : RecurringHostedServiceBase
Constructors
View SourceTouchServerTask(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 SourcePerformExecuteAsync(Object)
Declaration
public override Task PerformExecuteAsync(object state)
Parameters
Type | Name | Description |
---|---|---|
System.Object | state |
Returns
Type | Description |
---|---|
Task |