Skip to content

Class ConsulDependencyHealthServiceCollectionExtensions

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

Adds Consul dependency-health services to a Cephalon host.

public static class ConsulDependencyHealthServiceCollectionExtensions

objectConsulDependencyHealthServiceCollectionExtensions

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

AddCephalonConsulDependencyHealth(IServiceCollection, IConfiguration, Action<ConsulDependencyHealthOptions>?)

Section titled “ AddCephalonConsulDependencyHealth(IServiceCollection, IConfiguration, Action<ConsulDependencyHealthOptions>?)”

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

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

services IServiceCollection

The target service collection.

configuration IConfiguration

The application configuration root.

configure Action<ConsulDependencyHealthOptions>?

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

IServiceCollection

The same service collection for further registration.

AddCephalonConsulDependencyHealth(IServiceCollection, Action<ConsulDependencyHealthOptions>?)

Section titled “ AddCephalonConsulDependencyHealth(IServiceCollection, Action<ConsulDependencyHealthOptions>?)”

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

public static IServiceCollection AddCephalonConsulDependencyHealth(this IServiceCollection services, Action<ConsulDependencyHealthOptions>? configure = null)

services IServiceCollection

The target service collection.

configure Action<ConsulDependencyHealthOptions>?

An optional callback that configures dependency-health options.

IServiceCollection

The same service collection for further registration.