Skip to content

Class ConsulDependencyHealthOptions

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

Configures Consul dependency probes contributed to Cephalon runtime health.

public sealed class ConsulDependencyHealthOptions : DependencyHealthOptionsBase<ConsulDependencyDefinition>

objectDependencyHealthOptionsBase<ConsulDependencyDefinition>ConsulDependencyHealthOptions

DependencyHealthOptionsBase<ConsulDependencyDefinition>.RefreshIntervalSeconds, DependencyHealthOptionsBase<ConsulDependencyDefinition>.Dependencies, object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Initializes a new instance of the class.

public ConsulDependencyHealthOptions()

FromConfiguration(IConfiguration, string)

Section titled “ FromConfiguration(IConfiguration, string)”

Binds Consul dependency-health options from configuration.

public static ConsulDependencyHealthOptions FromConfiguration(IConfiguration configuration, string sectionPath = "Engine")

configuration IConfiguration

The application configuration root.

sectionPath string

The configuration section path that contains the engine settings. The default is Engine.

ConsulDependencyHealthOptions

The bound dependency-health options.