Interface IHealthCheck
- Assembly
- WorkflowForge.Extensions.Observability.HealthChecks.dll
Represents a health check that can be executed to determine the health status of a component.
public interface IHealthCheck
Properties
Description
Gets the description of what this health check validates.
string Description { get; }
Property Value
Name
Gets the name of the health check.
string Name { get; }
Property Value
Methods
CheckHealthAsync(CancellationToken)
Executes the health check asynchronously.
Task<HealthCheckResult> CheckHealthAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenThe cancellation token.
Returns
- Task<HealthCheckResult>
A task representing the health check result.