Skip to content

Class NatsDependencyHealthOptions

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

Configures NATS dependency probes contributed to Cephalon runtime health.

public sealed class NatsDependencyHealthOptions : DependencyHealthOptionsBase<NatsDependencyDefinition>

objectDependencyHealthOptionsBase<NatsDependencyDefinition>NatsDependencyHealthOptions

DependencyHealthOptionsBase<NatsDependencyDefinition>.RefreshIntervalSeconds, DependencyHealthOptionsBase<NatsDependencyDefinition>.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 NatsDependencyHealthOptions()

FromConfiguration(IConfiguration, string)

Section titled “ FromConfiguration(IConfiguration, string)”

Binds NATS dependency-health options from configuration.

public static NatsDependencyHealthOptions 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.

NatsDependencyHealthOptions

The bound dependency-health options.