Interface IHealthContributor
Implement this interface and add to DI to be included in health checks.
Namespace: Steeltoe.Common.HealthChecks
Assembly: Steeltoe.Common.dll
Syntax
public interface IHealthContributor
Properties
| Edit this page View SourceId
Gets an identifier for the type of check being performed.
Declaration
string Id { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Edit this page View SourceCheckHealthAsync(CancellationToken)
Performs a health check.
Declaration
Task<HealthCheckResult> CheckHealthAsync(CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken | The token to monitor for cancellation requests. |
Returns
Type | Description |
---|---|
Task<HealthCheckResult> | The result of the health check, or |