private void HealthCheckInternal() { using (new CorrelatedSequence()) { var healthState = HealthState.Error; try { healthState = HealthCheck(); } catch (Exception e) { Log.Error(e, GetType().Name); } healthReporter.ReportHealthRecurrent(Property, healthState, recurrenceInterval + timeToLivePadding); } }
private void HealthCheckInternal() { using (new CorrelatedSequence()) { var healthState = HealthState.Error; try { healthState = HealthCheck(); } catch (Exception e) { #if NET452 Log.Error(e, "Recurrent {HealthCheckName} error", Name); #endif #if NETSTANDARD2_0 logger.LogError(e, "Recurrent {HealthCheckName} error", Name); #endif } healthReporter.ReportHealthRecurrent(Property, healthState, recurrenceInterval + timeToLivePadding); } }