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
factoryMongoDbConnectorFactoryloggerILogger<MongoDbHealthContributor>timeoutint
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
configurationIConfigurationloggerILogger<MongoDbHealthContributor>
Returns
Health()
Check the health of a resource
public HealthCheckResult Health()
Returns
- HealthCheckResult
The result of checking the health of a resource