Class KeepAlive
Hosted service implementation for keep alive feature.
Namespace: Umbraco.Cms.Infrastructure.HostedServices
Assembly: Umbraco.Infrastructure.dll
Syntax
public class KeepAlive : RecurringHostedServiceBase
Constructors
View SourceKeepAlive(IHostingEnvironment, IMainDom, IOptionsMonitor<KeepAliveSettings>, ILogger<KeepAlive>, IProfilingLogger, IServerRoleAccessor, IHttpClientFactory)
Initializes a new instance of the KeepAlive class.
Declaration
public KeepAlive(IHostingEnvironment hostingEnvironment, IMainDom mainDom, IOptionsMonitor<KeepAliveSettings> keepAliveSettings, ILogger<KeepAlive> logger, IProfilingLogger profilingLogger, IServerRoleAccessor serverRegistrar, IHttpClientFactory httpClientFactory)
Parameters
Type | Name | Description |
---|---|---|
IHostingEnvironment | hostingEnvironment | The current hosting environment |
IMainDom | mainDom | Representation of the main application domain. |
IOptionsMonitor<KeepAliveSettings> | keepAliveSettings | The configuration for keep alive settings. |
ILogger<KeepAlive> | logger | The typed logger. |
IProfilingLogger | profilingLogger | The profiling logger. |
IServerRoleAccessor | serverRegistrar | Provider of server registrations to the distributed cache. |
IHttpClientFactory | httpClientFactory | Factory for |
Methods
View SourcePerformExecuteAsync(Object)
Declaration
public override async Task PerformExecuteAsync(object state)
Parameters
Type | Name | Description |
---|---|---|
System.Object | state |
Returns
Type | Description |
---|---|
Task |