Example #1
0
        /// <inheritdoc />
        public override Task InspectAsync(HealthMonitoringRecord record)
        {
            if (record.Severity == HealthSeverity.Error)
            {
                Logger.ErrorException($"Unhealthiness detected in the operation {record.Operation} for {record.Lease}. ", record.Exception);
            }

            return(Task.FromResult(true));
        }
Example #2
0
        /// <inheritdoc />
        public override Task InspectAsync(HealthMonitoringRecord record)
        {
            if (record.Severity == HealthSeverity.Error)
            {
                Extensions.TraceException(record.Exception);
                DefaultTrace.TraceError($"Unhealthiness detected in the operation {record.Operation} for {record.Lease}. ");
            }

            return(Task.FromResult(true));
        }
 /// <summary>
 /// A logic to handle that exceptional situation.
 /// </summary>
 public abstract Task InspectAsync(HealthMonitoringRecord record);