Class DependencyHealthOptionsBase
Namespace: Cephalon.Observability.DependencyHealth.Core.Configuration
Assembly: Cephalon.Observability.DependencyHealth.Core.dll
Base class for provider-specific dependency-health options.
public abstract class DependencyHealthOptionsBase<TDefinition> where TDefinition : DependencyDefinitionBaseType Parameters
Section titled “Type Parameters”TDefinition
The provider-specific dependency definition type.
Inheritance
Section titled “Inheritance”object ← DependencyHealthOptionsBase<TDefinition>
Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Properties
Section titled “Properties”Dependencies
Section titled “ Dependencies”Gets or sets the configured dependencies.
public IReadOnlyList<TDefinition> Dependencies { get; set; }Property Value
Section titled “Property Value”IReadOnlyList<TDefinition>
RefreshIntervalSeconds
Section titled “ RefreshIntervalSeconds”Gets or sets the interval in seconds between background refresh attempts.
public int RefreshIntervalSeconds { get; set; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”GetBoolean(string?, bool)
Section titled “ GetBoolean(string?, bool)”Parses a boolean value, returning defaultValue when absent or unparseable.
protected static bool GetBoolean(string? value, bool defaultValue)Parameters
Section titled “Parameters”value string?
defaultValue bool
Returns
Section titled “Returns”GetInt32(string?, int)
Section titled “ GetInt32(string?, int)”Parses a positive integer value, returning defaultValue when absent or non-positive.
protected static int GetInt32(string? value, int defaultValue)Parameters
Section titled “Parameters”value string?
defaultValue int
Returns
Section titled “Returns”GetNullableBoolean(string?)
Section titled “ GetNullableBoolean(string?)”Parses a nullable boolean value, returning null when absent or unparseable.
protected static bool? GetNullableBoolean(string? value)Parameters
Section titled “Parameters”value string?
Returns
Section titled “Returns”bool?