Skip to content

Class PostgresDependencyHealthServiceCollectionExtensions

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

Adds Postgres dependency-health services to a Cephalon host.

public static class PostgresDependencyHealthServiceCollectionExtensions

objectPostgresDependencyHealthServiceCollectionExtensions

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

AddCephalonPostgresDependencyHealth(IServiceCollection, IConfiguration, Action<PostgresDependencyHealthOptions>?)

Section titled “ AddCephalonPostgresDependencyHealth(IServiceCollection, IConfiguration, Action<PostgresDependencyHealthOptions>?)”

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

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

services IServiceCollection

The target service collection.

configuration IConfiguration

The application configuration root.

configure Action<PostgresDependencyHealthOptions>?

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

IServiceCollection

The same service collection for further registration.

AddCephalonPostgresDependencyHealth(IServiceCollection, Action<PostgresDependencyHealthOptions>?)

Section titled “ AddCephalonPostgresDependencyHealth(IServiceCollection, Action<PostgresDependencyHealthOptions>?)”

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

public static IServiceCollection AddCephalonPostgresDependencyHealth(this IServiceCollection services, Action<PostgresDependencyHealthOptions>? configure = null)

services IServiceCollection

The target service collection.

configure Action<PostgresDependencyHealthOptions>?

An optional callback that configures dependency-health options.

IServiceCollection

The same service collection for further registration.