Class HealthCheckNotifierJob
Hosted service implementation for recurring health check notifications.
Inheritance
System.Object
Namespace: Umbraco.Cms.Infrastructure.BackgroundJobs.Jobs
Assembly: Umbraco.Infrastructure.dll
Syntax
public class HealthCheckNotifierJob : IRecurringBackgroundJob
Constructors
View SourceHealthCheckNotifierJob(IOptionsMonitor<HealthChecksSettings>, HealthCheckCollection, HealthCheckNotificationMethodCollection, ICoreScopeProvider, ILogger<HealthCheckNotifierJob>, IProfilingLogger, ICronTabParser, IEventAggregator)
Initializes a new instance of the Health
Declaration
public HealthCheckNotifierJob(IOptionsMonitor<HealthChecksSettings> healthChecksSettings, HealthCheckCollection healthChecks, HealthCheckNotificationMethodCollection notifications, ICoreScopeProvider scopeProvider, ILogger<HealthCheckNotifierJob> logger, IProfilingLogger profilingLogger, ICronTabParser cronTabParser, IEventAggregator eventAggregator)
Parameters
Type | Name | Description |
---|---|---|
IOptions |
healthChecksSettings | The configuration for health check settings. |
Health |
healthChecks | The collection of healthchecks. |
Health |
notifications | The collection of healthcheck notification methods. |
ICore |
scopeProvider | Provides scopes for database operations. |
ILogger<Health |
logger | The typed logger. |
IProfiling |
profilingLogger | The profiling logger. |
ICron |
cronTabParser | Parser of crontab expressions. |
IEvent |
eventAggregator |
Properties
View SourceDelay
Declaration
public TimeSpan Delay { get; }
Property Value
Type | Description |
---|---|
Time |
Period
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 |