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 Keep
Declaration
public KeepAlive(IHostingEnvironment hostingEnvironment, IMainDom mainDom, IOptionsMonitor<KeepAliveSettings> keepAliveSettings, ILogger<KeepAlive> logger, IProfilingLogger profilingLogger, IServerRoleAccessor serverRegistrar, IHttpClientFactory httpClientFactory)
Parameters
Type | Name | Description |
---|---|---|
IHosting |
hostingEnvironment | The current hosting environment |
IMain |
mainDom | Representation of the main application domain. |
IOptions |
keepAliveSettings | The configuration for keep alive settings. |
ILogger<Keep |
logger | The typed logger. |
IProfiling |
profilingLogger | The profiling logger. |
IServer |
serverRegistrar | Provider of server registrations to the distributed cache. |
IHttp |
httpClientFactory | Factory for |
Methods
View SourcePerformExecuteAsync(Object)
Declaration
public override async Task PerformExecuteAsync(object state)
Parameters
Type | Name | Description |
---|---|---|
System. |
state |
Returns
Type | Description |
---|---|
Task |