public HealthReportEntryResult(HealthReportEntry entry)
 {
     Data        = entry.Data;
     Description = entry.Description;
     Duration    = entry.Duration;
     Exception   = entry.Exception;
     Tags        = entry.Tags;
     Status      = HealthReportResult <T> .GetHealthStatusString(entry.Status);
 }
        public static ObjectResult GetHealthReportObjectResult <T>(HealthReport report)
        {
            var reportResult = new HealthReportResult <T>(report);
            var result       = new ObjectResult(reportResult);

            if (report.Status == HealthStatus.Degraded)
            {
                result.StatusCode = 598;
            }
            if (report.Status == HealthStatus.Unhealthy)
            {
                result.StatusCode = 599;
            }
            return(result);
        }