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 Health
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 |
---|---|---|
IOptions |
healthChecksSettings | The configuration for health check settings. |
Health |
healthChecks | The collection of healthchecks. |
Health |
notifications | The collection of healthcheck notification methods. |
IRuntime |
runtimeState | Representation of the state of the Umbraco runtime. |
IServer |
serverRegistrar | Provider of server registrations to the distributed cache. |
IMain |
mainDom | Representation of the main application domain. |
ICore |
scopeProvider | Provides scopes for database operations. |
ILogger<Health |
logger | The typed logger. |
IProfiling |
profilingLogger | The profiling logger. |
ICron |
cronTabParser | Parser of crontab expressions. |
Methods
View SourcePerformExecuteAsync(Object)
Declaration
public override async Task PerformExecuteAsync(object state)
Parameters
Type | Name | Description |
---|---|---|
System. |
state |
Returns
Type | Description |
---|---|
Task |