Skip to content

Class MqttDependencyHealthServiceCollectionExtensions

Namespace: Cephalon.Observability.MqttDependencies.Hosting
Assembly: Cephalon.Observability.MqttDependencies.dll

Adds MQTT dependency-health services to a Cephalon host.

public static class MqttDependencyHealthServiceCollectionExtensions

objectMqttDependencyHealthServiceCollectionExtensions

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

AddCephalonMqttDependencyHealth(IServiceCollection, IConfiguration, Action<MqttDependencyHealthOptions>?)

Section titled “ AddCephalonMqttDependencyHealth(IServiceCollection, IConfiguration, Action<MqttDependencyHealthOptions>?)”

Adds MQTT dependency-health services using configuration as the primary source of probe settings.

public static IServiceCollection AddCephalonMqttDependencyHealth(this IServiceCollection services, IConfiguration configuration, Action<MqttDependencyHealthOptions>? configure = null)

services IServiceCollection

The target service collection.

configuration IConfiguration

The application configuration root.

configure Action<MqttDependencyHealthOptions>?

An optional callback that can extend or override the configuration-driven dependency-health setup.

IServiceCollection

The same service collection for further registration.

AddCephalonMqttDependencyHealth(IServiceCollection, Action<MqttDependencyHealthOptions>?)

Section titled “ AddCephalonMqttDependencyHealth(IServiceCollection, Action<MqttDependencyHealthOptions>?)”

Adds MQTT dependency-health services using code-first configuration.

public static IServiceCollection AddCephalonMqttDependencyHealth(this IServiceCollection services, Action<MqttDependencyHealthOptions>? configure = null)

services IServiceCollection

The target service collection.

configure Action<MqttDependencyHealthOptions>?

An optional callback that configures dependency-health options.

IServiceCollection

The same service collection for further registration.