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