Class KeepAliveJob
Hosted service implementation for keep alive feature.
Inheritance
System.Object
Namespace: Umbraco.Cms.Infrastructure.BackgroundJobs.Jobs
Assembly: Umbraco.Infrastructure.dll
Syntax
public class KeepAliveJob : IRecurringBackgroundJob
Constructors
View SourceKeepAliveJob(IHostingEnvironment, IOptionsMonitor<KeepAliveSettings>, ILogger<KeepAliveJob>, IProfilingLogger, IHttpClientFactory)
Initializes a new instance of the KeepAliveJob class.
Declaration
public KeepAliveJob(IHostingEnvironment hostingEnvironment, IOptionsMonitor<KeepAliveSettings> keepAliveSettings, ILogger<KeepAliveJob> logger, IProfilingLogger profilingLogger, IHttpClientFactory httpClientFactory)
Parameters
Type | Name | Description |
---|---|---|
IHostingEnvironment | hostingEnvironment | The current hosting environment |
IOptionsMonitor<KeepAliveSettings> | keepAliveSettings | The configuration for keep alive settings. |
ILogger<KeepAliveJob> | logger | The typed logger. |
IProfilingLogger | profilingLogger | The profiling logger. |
IHttpClientFactory | httpClientFactory | Factory for |
Properties
View SourcePeriod
Declaration
public TimeSpan Period { get; }
Property Value
Type | Description |
---|---|
TimeSpan |
Methods
View SourceRunJobAsync()
Declaration
public async Task RunJobAsync()
Returns
Type | Description |
---|---|
Task |
Events
View SourcePeriodChanged
Declaration
public event EventHandler PeriodChanged
Event Type
Type | Description |
---|---|
EventHandler |