Table of Contents

Class EurekaApplicationsHealthContributor

Namespace
Steeltoe.Discovery.Eureka
Assembly
Steeltoe.Discovery.Eureka.dll

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 EurekaDiscoveryClient
clientOptionsMonitor IOptionsMonitor<EurekaClientOptions>

Properties

Id

Gets an identifier for the type of check being performed.

public string Id { get; }

Property Value

string

Methods

CheckHealthAsync(CancellationToken)

Performs a health check.

public Task<HealthCheckResult?> CheckHealthAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

The token to monitor for cancellation requests.

Returns

Task<HealthCheckResult>

The result of the health check, or null if this health check is currently disabled.