MtWebHealthCheckerCheckHealthAsync Method

Runs the health check, returning the status of the component being checked.

Definition

Namespace: MobileTrack.Web.Components.Services
Assembly: MobileTrack.Web.Components (in MobileTrack.Web.Components.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
public Task<HealthCheckResult> CheckHealthAsync(
	HealthCheckContext context,
	CancellationToken cancellationToken = default
)

Parameters

context  HealthCheckContext
A context object associated with the current execution.
cancellationToken  CancellationToken  (Optional)
A CancellationToken that can be used to cancel the health check.

Return Value

TaskHealthCheckResult
A TaskTResult that completes when the health check has finished, yielding the status of the component being checked.

Implements

IHealthCheckCheckHealthAsync(HealthCheckContext, CancellationToken)

See Also