Class RedisHealthContributor
- Namespace
- Steeltoe.CloudFoundry.Connector.Redis
- Assembly
- Steeltoe.CloudFoundry.ConnectorBase.dll
public class RedisHealthContributor : IHealthContributor
- Inheritance
-
RedisHealthContributor
- Implements
- Inherited Members
Constructors
RedisHealthContributor(RedisServiceConnectorFactory, Type, ILogger<RedisHealthContributor>)
public RedisHealthContributor(RedisServiceConnectorFactory factory, Type implType, ILogger<RedisHealthContributor> logger = null)
Parameters
factory
RedisServiceConnectorFactoryimplType
Typelogger
ILogger<RedisHealthContributor>
Properties
Id
Gets an identifier for the type of check being performed
public string Id { get; }
Property Value
Methods
GetRedisContributor(IConfiguration, ILogger<RedisHealthContributor>)
public static IHealthContributor GetRedisContributor(IConfiguration configuration, ILogger<RedisHealthContributor> logger = null)
Parameters
configuration
IConfigurationlogger
ILogger<RedisHealthContributor>
Returns
Health()
Check the health of a resource
public HealthCheckResult Health()
Returns
- HealthCheckResult
The result of checking the health of a resource