Skip to content

Class HealthCheckStatusStore ​

Namespace: Momentum.ServiceDefaults.HealthChecks
Assembly: Momentum.ServiceDefaults.dll

Stores the last known health check status for the application.

csharp
public class HealthCheckStatusStore

Inheritance ​

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() ​

csharp
public HealthCheckStatusStore()

Properties ​

LastHealthStatus ​

Gets or sets the last recorded health status.

csharp
public virtual HealthStatus LastHealthStatus { get; set; }

Property Value ​

HealthStatus

Remarks ​

This property is thread-safe and uses Interlocked operations to ensure atomicity and visibility across threads.