Skip to content

Class HttpDependencyHealthServiceCollectionExtensions

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

Adds HTTP and external API dependency-health services to a Cephalon host.

public static class HttpDependencyHealthServiceCollectionExtensions

objectHttpDependencyHealthServiceCollectionExtensions

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

AddCephalonHttpDependencyHealth(IServiceCollection, IConfiguration, Action<HttpDependencyHealthOptions>?)

Section titled “ AddCephalonHttpDependencyHealth(IServiceCollection, IConfiguration, Action<HttpDependencyHealthOptions>?)”

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

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

services IServiceCollection

The target service collection.

configuration IConfiguration

The application configuration root.

configure Action<HttpDependencyHealthOptions>?

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

IServiceCollection

The same service collection for further registration.

AddCephalonHttpDependencyHealth(IServiceCollection, Action<HttpDependencyHealthOptions>?)

Section titled “ AddCephalonHttpDependencyHealth(IServiceCollection, Action<HttpDependencyHealthOptions>?)”

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

public static IServiceCollection AddCephalonHttpDependencyHealth(this IServiceCollection services, Action<HttpDependencyHealthOptions>? configure = null)

services IServiceCollection

The target service collection.

configure Action<HttpDependencyHealthOptions>?

An optional callback that configures dependency-health options.

IServiceCollection

The same service collection for further registration.