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