Skip to content

Class NatsDependencyHealthServiceCollectionExtensions

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

Adds NATS dependency-health services to a Cephalon host.

public static class NatsDependencyHealthServiceCollectionExtensions

objectNatsDependencyHealthServiceCollectionExtensions

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

AddCephalonNatsDependencyHealth(IServiceCollection, IConfiguration, Action<NatsDependencyHealthOptions>?)

Section titled “ AddCephalonNatsDependencyHealth(IServiceCollection, IConfiguration, Action<NatsDependencyHealthOptions>?)”

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

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

services IServiceCollection

The target service collection.

configuration IConfiguration

The application configuration root.

configure Action<NatsDependencyHealthOptions>?

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

IServiceCollection

The same service collection for further registration.

AddCephalonNatsDependencyHealth(IServiceCollection, Action<NatsDependencyHealthOptions>?)

Section titled “ AddCephalonNatsDependencyHealth(IServiceCollection, Action<NatsDependencyHealthOptions>?)”

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

public static IServiceCollection AddCephalonNatsDependencyHealth(this IServiceCollection services, Action<NatsDependencyHealthOptions>? configure = null)

services IServiceCollection

The target service collection.

configure Action<NatsDependencyHealthOptions>?

An optional callback that configures dependency-health options.

IServiceCollection

The same service collection for further registration.