Table of Contents

Class MongoDbHealthContributor

Namespace
Steeltoe.Connector.MongoDb
Assembly
Steeltoe.Connector.ConnectorBase.dll
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 MongoDbConnectorFactory
logger ILogger<MongoDbHealthContributor>
timeout int

Properties

Id

Gets an identifier for the type of check being performed

public string Id { get; }

Property Value

string

Methods

GetMongoDbHealthContributor(IConfiguration, ILogger<MongoDbHealthContributor>)

public static IHealthContributor GetMongoDbHealthContributor(IConfiguration configuration, ILogger<MongoDbHealthContributor> logger = null)

Parameters

configuration IConfiguration
logger ILogger<MongoDbHealthContributor>

Returns

IHealthContributor

Health()

Check the health of a resource

public HealthCheckResult Health()

Returns

HealthCheckResult

The result of checking the health of a resource