The HealthCheck class is not not DI friendly. The constructor has values parameters like the check name, and check behavior with the Func<CancelationToken, ValueTask<IHealthCheckResult>> check parameter (ouch....)
As the HealthCheck class is responsible of the caching behavior, it should be the principal way to implement IHealthCheck.
Related to #23.
The
HealthCheck
class is not not DI friendly. The constructor has values parameters like the check name, and check behavior with theFunc<CancelationToken, ValueTask<IHealthCheckResult>>
check parameter (ouch....)As the
HealthCheck
class is responsible of the caching behavior, it should be the principal way to implementIHealthCheck
. Related to #23.