Class MongoDbHealthContributor
public class MongoDbHealthContributor : IHealthContributor
- Inheritance
-
MongoDbHealthContributor
- Implements
- Inherited Members
Constructors
MongoDbHealthContributor(MongoDbConnectorFactory, ILogger<MongoDbHealthContributor>, int)
public MongoDbHealthContributor(MongoDbConnectorFactory factory, ILogger<MongoDbHealthContributor> logger = null, int timeout = 5000)
Parameters
factory
MongoDbConnectorFactorylogger
ILogger<MongoDbHealthContributor>timeout
int
Properties
Id
Gets an identifier for the type of check being performed
public string Id { get; }
Property Value
Methods
GetMongoDbHealthContributor(IConfiguration, ILogger<MongoDbHealthContributor>)
public static IHealthContributor GetMongoDbHealthContributor(IConfiguration configuration, ILogger<MongoDbHealthContributor> logger = null)
Parameters
configuration
IConfigurationlogger
ILogger<MongoDbHealthContributor>
Returns
Health()
Check the health of a resource
public HealthCheckResult Health()
Returns
- HealthCheckResult
The result of checking the health of a resource