ข้ามไปยังเนื้อหา

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 : DependencyDefinitionBase

TDefinition

The provider-specific dependency definition type.

objectDependencyHealthOptionsBase<TDefinition>

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

Gets or sets the configured dependencies.

public IReadOnlyList<TDefinition> Dependencies { get; set; }

IReadOnlyList<TDefinition>

Gets or sets the interval in seconds between background refresh attempts.

public int RefreshIntervalSeconds { get; set; }

int

Parses a boolean value, returning defaultValue when absent or unparseable.

protected static bool GetBoolean(string? value, bool defaultValue)

value string?

defaultValue bool

bool

Parses a positive integer value, returning defaultValue when absent or non-positive.

protected static int GetInt32(string? value, int defaultValue)

value string?

defaultValue int

int

Parses a nullable boolean value, returning null when absent or unparseable.

protected static bool? GetNullableBoolean(string? value)

value string?

bool?