1 write to Exception
Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (1)
HealthReportEntry.cs (1)
46Exception = exception;
15 references to Exception
Aspire.Hosting (2)
Health\ResourceHealthCheckService.cs (2)
111|| !StringComparers.HealthReportPropertyValue.Equals(checkReportSnapshot.ExceptionText, value.Exception?.ToString())) 163var snapshot = new HealthReportSnapshot(key, entry.Status, entry.Description, entry.Exception?.ToString());
Microsoft.Extensions.Diagnostics.HealthChecks (2)
DefaultHealthCheckService.cs (2)
242HealthCheckEndDegraded(logger, registration.Name, entry.Status, duration.TotalMilliseconds, entry.Description, entry.Exception); 246HealthCheckEndUnhealthy(logger, registration.Name, entry.Status, duration.TotalMilliseconds, entry.Description, entry.Exception);
Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (2)
HealthReportEntry.cs (2)
24/// <param name="exception">An <see cref="Exception"/> representing the exception that was thrown when checking for status (if any).</param> 38/// <param name="exception">An <see cref="Exception"/> representing the exception that was thrown when checking for status (if any).</param>
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (9)
DefaultHealthCheckServiceTest.cs (9)
90Assert.Null(actual.Value.Exception); 99Assert.Null(actual.Value.Exception); 112Assert.Same(exception, actual.Value.Exception); 144Assert.Equal(ExceptionMessage, actual.Value.Exception!.Message); 153Assert.Equal(OperationCancelledMessage, actual.Value.Exception!.Message); 192Assert.Null(actual.Value.Exception); 298Assert.Same(thrownException, actual.Value.Exception); 305Assert.Same(faultedException, actual.Value.Exception); 312Assert.Null(actual.Value.Exception);