Class HealthCheckNotifier
Hosted service implementation for recurring health check notifications.
Namespace: Umbraco.Cms.Infrastructure.HostedServices
Assembly: Umbraco.Infrastructure.dll
Syntax
public class HealthCheckNotifier : RecurringHostedServiceBase
Constructors
View SourceHealthCheckNotifier(IOptionsMonitor<HealthChecksSettings>, HealthCheckCollection, HealthCheckNotificationMethodCollection, IRuntimeState, IServerRoleAccessor, IMainDom, ICoreScopeProvider, ILogger<HealthCheckNotifier>, IProfilingLogger, ICronTabParser)
Initializes a new instance of the HealthCheckNotifier class.
Declaration
public HealthCheckNotifier(IOptionsMonitor<HealthChecksSettings> healthChecksSettings, HealthCheckCollection healthChecks, HealthCheckNotificationMethodCollection notifications, IRuntimeState runtimeState, IServerRoleAccessor serverRegistrar, IMainDom mainDom, ICoreScopeProvider scopeProvider, ILogger<HealthCheckNotifier> logger, IProfilingLogger profilingLogger, ICronTabParser cronTabParser)
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. |
IRuntimeState | runtimeState | Representation of the state of the Umbraco runtime. |
IServerRoleAccessor | serverRegistrar | Provider of server registrations to the distributed cache. |
IMainDom | mainDom | Representation of the main application domain. |
ICoreScopeProvider | scopeProvider | Provides scopes for database operations. |
ILogger<HealthCheckNotifier> | logger | The typed logger. |
IProfilingLogger | profilingLogger | The profiling logger. |
ICronTabParser | cronTabParser | Parser of crontab expressions. |
Methods
View SourcePerformExecuteAsync(Object)
Declaration
public override async Task PerformExecuteAsync(object state)
Parameters
Type | Name | Description |
---|---|---|
System.Object | state |
Returns
Type | Description |
---|---|
Task |