Class EurekaApplicationsHealthContributor
Reports whether the configured list of apps this app depends on are reachable.
public sealed class EurekaApplicationsHealthContributor : IHealthContributor
- Inheritance
-
EurekaApplicationsHealthContributor
- Implements
- Inherited Members
Constructors
EurekaApplicationsHealthContributor(EurekaDiscoveryClient, IOptionsMonitor<EurekaClientOptions>)
public EurekaApplicationsHealthContributor(EurekaDiscoveryClient discoveryClient, IOptionsMonitor<EurekaClientOptions> clientOptionsMonitor)
Parameters
discoveryClient
EurekaDiscoveryClientclientOptionsMonitor
IOptionsMonitor<EurekaClientOptions>
Properties
Id
Gets an identifier for the type of check being performed.
public string Id { get; }
Property Value
Methods
CheckHealthAsync(CancellationToken)
Performs a health check.
public Task<HealthCheckResult?> CheckHealthAsync(CancellationToken cancellationToken)
Parameters
cancellationToken
CancellationTokenThe token to monitor for cancellation requests.
Returns
- Task<HealthCheckResult>
The result of the health check, or
null
if this health check is currently disabled.