Class KeepAlive
Hosted service implementation for keep alive feature.
Namespace: Umbraco.Cms.Infrastructure.HostedServices
Assembly: cs.temp.dll.dll
Syntax
public class KeepAlive : RecurringHostedServiceBase, IDisposable
Constructors
KeepAlive(IHostingEnvironment, IMainDom, IOptions<KeepAliveSettings>, ILogger<KeepAlive>, IProfilingLogger, IServerRoleAccessor, IHttpClientFactory)
Initializes a new instance of the KeepAlive class.
Declaration
public KeepAlive(IHostingEnvironment hostingEnvironment, IMainDom mainDom, IOptions<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. |
IOptions<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
PerformExecuteAsync(Object)
Declaration
public override async Task PerformExecuteAsync(object state)
Parameters
Type | Name | Description |
---|---|---|
System.Object | state |
Returns
Type | Description |
---|---|
Task |