Table of Contents

Class ConfigServerHealthContributor

Namespace
Steeltoe.Extensions.Configuration.ConfigServer
Assembly
Steeltoe.Extensions.Configuration.ConfigServerBase.dll
public class ConfigServerHealthContributor : IHealthContributor
Inheritance
ConfigServerHealthContributor
Implements
Inherited Members

Constructors

ConfigServerHealthContributor(IConfiguration, ILogger<ConfigServerHealthContributor>)

public ConfigServerHealthContributor(IConfiguration configuration, ILogger<ConfigServerHealthContributor> logger = null)

Parameters

configuration IConfiguration
logger ILogger<ConfigServerHealthContributor>

Properties

Id

Gets an identifier for the type of check being performed

public string Id { get; }

Property Value

string

Methods

GetHealthContributor(IConfiguration, ILogger<ConfigServerHealthContributor>)

public static IHealthContributor GetHealthContributor(IConfiguration configuration, ILogger<ConfigServerHealthContributor> logger = null)

Parameters

configuration IConfiguration
logger ILogger<ConfigServerHealthContributor>

Returns

IHealthContributor

Health()

Check the health of a resource

public HealthCheckResult Health()

Returns

HealthCheckResult

The result of checking the health of a resource