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)
Declaration
public HealthCheckNotifierJob(IOptionsMonitor<HealthChecksSettings> healthChecksSettings, HealthCheckCollection healthChecks, HealthCheckNotificationMethodCollection notifications, ICoreScopeProvider scopeProvider, ILogger<HealthCheckNotifierJob> logger, IProfilingLogger profilingLogger, ICronTabParser cronTabParser)
Parameters
| Type | Name | Description |
|---|---|---|
| IOptionsMonitor<HealthChecksSettings> | healthChecksSettings | |
| HealthCheckCollection | healthChecks | |
| HealthCheckNotificationMethodCollection | notifications | |
| ICoreScopeProvider | scopeProvider | |
| ILogger<HealthCheckNotifierJob> | logger | |
| IProfilingLogger | profilingLogger | |
| ICronTabParser | cronTabParser |
HealthCheckNotifierJob(IOptionsMonitor<HealthChecksSettings>, HealthCheckCollection, HealthCheckNotificationMethodCollection, ICoreScopeProvider, ILogger<HealthCheckNotifierJob>, IProfilingLogger, ICronTabParser, IEventAggregator)
Initializes a new instance of the HealthCheckNotifierJob class.
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 |
|---|---|---|
| IOptionsMonitor<HealthChecksSettings> | healthChecksSettings | The configuration for health check settings. |
| HealthCheckCollection | healthChecks | The collection of healthchecks. |
| HealthCheckNotificationMethodCollection | notifications | The collection of healthcheck notification methods. |
| ICoreScopeProvider | scopeProvider | Provides scopes for database operations. |
| ILogger<HealthCheckNotifierJob> | logger | The typed logger. |
| IProfilingLogger | profilingLogger | The profiling logger. |
| ICronTabParser | cronTabParser | Parser of crontab expressions. |
| IEventAggregator | eventAggregator |
Properties
View SourceDelay
Declaration
public TimeSpan Delay { get; }
Property Value
| Type | Description |
|---|---|
| TimeSpan |
Period
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 |