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 Keep
Declaration
public KeepAliveJob(IHostingEnvironment hostingEnvironment, IOptionsMonitor<KeepAliveSettings> keepAliveSettings, ILogger<KeepAliveJob> logger, IProfilingLogger profilingLogger, IHttpClientFactory httpClientFactory)
Parameters
Type | Name | Description |
---|---|---|
IHosting |
hostingEnvironment | The current hosting environment |
IOptions |
keepAliveSettings | The configuration for keep alive settings. |
ILogger<Keep |
logger | The typed logger. |
IProfiling |
profilingLogger | The profiling logger. |
IHttp |
httpClientFactory | Factory for |
Properties
View SourcePeriod
Declaration
public TimeSpan Period { get; }
Property Value
Type | Description |
---|---|
Time |
Methods
View SourceRunJobAsync()
Declaration
public async Task RunJobAsync()
Returns
Type | Description |
---|---|
Task |
Events
View SourcePeriodChanged
Declaration
public event EventHandler PeriodChanged
Event Type
Type | Description |
---|---|
Event |