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
IConfigurationlogger
ILogger<ConfigServerHealthContributor>
Properties
Id
Gets an identifier for the type of check being performed
public string Id { get; }
Property Value
Methods
GetHealthContributor(IConfiguration, ILogger<ConfigServerHealthContributor>)
public static IHealthContributor GetHealthContributor(IConfiguration configuration, ILogger<ConfigServerHealthContributor> logger = null)
Parameters
configuration
IConfigurationlogger
ILogger<ConfigServerHealthContributor>
Returns
Health()
Check the health of a resource
public HealthCheckResult Health()
Returns
- HealthCheckResult
The result of checking the health of a resource