Skip to content

Class RabbitMqDependencyHealthServiceCollectionExtensions

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

Adds RabbitMQ dependency-health services to a Cephalon host.

public static class RabbitMqDependencyHealthServiceCollectionExtensions

objectRabbitMqDependencyHealthServiceCollectionExtensions

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

AddCephalonRabbitMqDependencyHealth(IServiceCollection, IConfiguration, Action<RabbitMqDependencyHealthOptions>?)

Section titled “ AddCephalonRabbitMqDependencyHealth(IServiceCollection, IConfiguration, Action<RabbitMqDependencyHealthOptions>?)”

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

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

services IServiceCollection

The target service collection.

configuration IConfiguration

The application configuration root.

configure Action<RabbitMqDependencyHealthOptions>?

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

IServiceCollection

The same service collection for further registration.

AddCephalonRabbitMqDependencyHealth(IServiceCollection, Action<RabbitMqDependencyHealthOptions>?)

Section titled “ AddCephalonRabbitMqDependencyHealth(IServiceCollection, Action<RabbitMqDependencyHealthOptions>?)”

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

public static IServiceCollection AddCephalonRabbitMqDependencyHealth(this IServiceCollection services, Action<RabbitMqDependencyHealthOptions>? configure = null)

services IServiceCollection

The target service collection.

configure Action<RabbitMqDependencyHealthOptions>?

An optional callback that configures dependency-health options.

IServiceCollection

The same service collection for further registration.