Skip to content

Class Neo4jDependencyHealthServiceCollectionExtensions

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

Adds Neo4j dependency-health services to a Cephalon host.

public static class Neo4jDependencyHealthServiceCollectionExtensions

objectNeo4jDependencyHealthServiceCollectionExtensions

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

AddCephalonNeo4jDependencyHealth(IServiceCollection, IConfiguration, Action<Neo4jDependencyHealthOptions>?)

Section titled “ AddCephalonNeo4jDependencyHealth(IServiceCollection, IConfiguration, Action<Neo4jDependencyHealthOptions>?)”

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

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

services IServiceCollection

The target service collection.

configuration IConfiguration

The application configuration root.

configure Action<Neo4jDependencyHealthOptions>?

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

IServiceCollection

The same service collection for further registration.

AddCephalonNeo4jDependencyHealth(IServiceCollection, Action<Neo4jDependencyHealthOptions>?)

Section titled “ AddCephalonNeo4jDependencyHealth(IServiceCollection, Action<Neo4jDependencyHealthOptions>?)”

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

public static IServiceCollection AddCephalonNeo4jDependencyHealth(this IServiceCollection services, Action<Neo4jDependencyHealthOptions>? configure = null)

services IServiceCollection

The target service collection.

configure Action<Neo4jDependencyHealthOptions>?

An optional callback that configures dependency-health options.

IServiceCollection

The same service collection for further registration.