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 Touch
Declaration
public TouchServerTask(IRuntimeState runtimeState, IServerRegistrationService serverRegistrationService, IHostingEnvironment hostingEnvironment, ILogger<TouchServerTask> logger, IOptionsMonitor<GlobalSettings> globalSettings, IServerRoleAccessor serverRoleAccessor)
Parameters
Type | Name | Description |
---|---|---|
IRuntime |
runtimeState | Representation of the state of the Umbraco runtime. |
IServer |
serverRegistrationService | Services for server registrations. |
IHosting |
hostingEnvironment | The hostingEnviroment. |
ILogger<Touch |
logger | The typed logger. |
IOptions |
globalSettings | The configuration for global settings. |
IServer |
serverRoleAccessor | The accessor for the server role |
Methods
View SourcePerformExecuteAsync(Object)
Declaration
public override Task PerformExecuteAsync(object state)
Parameters
Type | Name | Description |
---|---|---|
System. |
state |
Returns
Type | Description |
---|---|
Task |