Class HealthCheckStatusStore
Namespace: Momentum.ServiceDefaults.HealthChecks
Assembly: Momentum.ServiceDefaults.dll
Stores the last known health check status for the application.
public class HealthCheckStatusStoreInheritance
object ← HealthCheckStatusStore
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Remarks
This store is typically used to track the application's health status across multiple health check executions, allowing components to react to health status changes or query the last known state without triggering a new health check.
This class is thread-safe and can be accessed concurrently from multiple health check requests without synchronization issues.
Constructors
HealthCheckStatusStore()
public HealthCheckStatusStore()Properties
LastHealthStatus
Gets or sets the last recorded health status.
public virtual HealthStatus LastHealthStatus { get; set; }Property Value
Remarks
This property is thread-safe and uses Interlocked operations to ensure atomicity and visibility across threads.