IManualHealthCheck Interface

Definition

Lets you manually set the health status of the application.

C#
public interface IManualHealthCheck : IDisposable
Derived
Implements

Properties

Result

Gets or sets the health status.

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

(Inherited from IDisposable)

Extension Methods

ReportHealthy(IManualHealthCheck)

Sets the manual health check to the healthy state.

ReportUnhealthy(IManualHealthCheck, String)

Sets the manual health check to return an unhealthy states and an associated reason.

Applies to

Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)