API Reference
Class
HealthCheckResult
Represents a health check outcome.
Inheritance
- Object
- HealthCheckResult
Usage
Explore 2 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 2
Constructors
public HealthCheckResult(Boolean ok, String? message = null, Exception? error = null, TimeSpan? duration = null) #Initializes a new health check result.
Parameters
- ok System.Boolean
- Whether the check succeeded.
- message System.String? = null
- Optional message.
- error System.Exception? = null
- Optional exception.
- duration System.TimeSpan? = null
- Optional duration.
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?
Properties
public Boolean Ok { get; } #Gets a value indicating whether the check succeeded.