Class ConfigurationHealthCheckService
- Namespace
- FoundationaLLM.Configuration.Services
- Assembly
- FoundationaLLM.Configuration.dll
Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.
public class ConfigurationHealthCheckService : IHostedService
- Inheritance
-
ConfigurationHealthCheckService
- Implements
- Inherited Members
- Extension Methods
Constructors
ConfigurationHealthCheckService(IConfigurationHealthChecks, IConfiguration, ILogger<ConfigurationHealthCheckService>, IHostApplicationLifetime)
public ConfigurationHealthCheckService(IConfigurationHealthChecks healthChecks, IConfiguration configuration, ILogger<ConfigurationHealthCheckService> logger, IHostApplicationLifetime appLifetime)
Parameters
healthChecks
IConfigurationHealthChecksconfiguration
IConfigurationlogger
ILogger<ConfigurationHealthCheckService>appLifetime
IHostApplicationLifetime
Methods
StartAsync(CancellationToken)
Triggered when the application host is ready to start the service.
public Task StartAsync(CancellationToken cancellationToken)
Parameters
cancellationToken
CancellationTokenIndicates that the start process has been aborted.
Returns
StopAsync(CancellationToken)
Triggered when the application host is performing a graceful shutdown.
public Task StopAsync(CancellationToken cancellationToken)
Parameters
cancellationToken
CancellationTokenIndicates that the shutdown process should no longer be graceful.