Esempio n. 1
0
 public Task <HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default)
 {
     if (_mqttClientFactory.AnyClientDisconnected())
     {
         return(Task.FromResult(HealthCheckResult.Unhealthy("Not all mqtt connection ok")));
     }
     return(Task.FromResult(HealthCheckResult.Healthy("Http connections are ok")));
 }