21 references to Unhealthy
Aspire.Hosting.Nats (1)
src\Components\Aspire.NATS.Net\NatsHealthCheck.cs (1)
33return HealthCheckResult.Unhealthy();
Aspire.Hosting.Tests (2)
Health\ResourceHealthCheckServiceTests.cs (2)
142return HealthCheckResult.Unhealthy(); 249var checkStatus = HealthCheckResult.Unhealthy();
Aspire.NATS.Net (1)
NatsHealthCheck.cs (1)
33return HealthCheckResult.Unhealthy();
Aspire.Seq (1)
SeqHealthCheck.cs (1)
26: HealthCheckResult.Unhealthy();
CatalogDb (1)
CatalogDbInitializerHealthCheck.cs (1)
15{ IsCanceled: true } => Task.FromResult(HealthCheckResult.Unhealthy("Database initialization was canceled")),
Microsoft.AspNetCore.Diagnostics.HealthChecks.Tests (4)
HealthCheckMiddlewareTests.cs (4)
238.AddAsyncCheck("Bar", () => Task.FromResult(HealthCheckResult.Unhealthy("Pretty bad."))) 317.AddAsyncCheck("Bar", () => Task.FromResult(HealthCheckResult.Unhealthy("Pretty bad."))) 354.AddAsyncCheck("Bar", () => Task.FromResult(HealthCheckResult.Unhealthy("Pretty bad."))) 492.AddAsyncCheck("Bar", () => Task.FromResult(HealthCheckResult.Unhealthy("A-ok!")))
Microsoft.Extensions.Diagnostics.HealthChecks.Common (5)
ApplicationLifecycleHealthCheck.cs (3)
17private static readonly Task<HealthCheckResult> _unhealthyNotStarted = Task.FromResult(HealthCheckResult.Unhealthy("Not Started")); 18private static readonly Task<HealthCheckResult> _unhealthyStopping = Task.FromResult(HealthCheckResult.Unhealthy("Stopping")); 19private static readonly Task<HealthCheckResult> _unhealthyStopped = Task.FromResult(HealthCheckResult.Unhealthy("Stopped"));
CommonHealthChecksExtensions.Manual.cs (1)
53=> Throw.IfNull(manualHealthCheck).Result = HealthCheckResult.Unhealthy(Throw.IfNullOrWhitespace(reason));
ManualHealthCheck.cs (1)
38Result = HealthCheckResult.Unhealthy("Initial state");
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (1)
ManualHealthCheckTests.cs (1)
65var unhealthyCheck = HealthCheckResult.Unhealthy("Test reason");
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (5)
DefaultHealthCheckServiceTest.cs (4)
76b.AddAsyncCheck("UnhealthyCheck", _ => Task.FromResult(HealthCheckResult.Unhealthy(UnhealthyMessage, exception)), unhealthyCheckTags); 179b.AddAsyncCheck("UnhealthyCheck", _ => Task.FromResult(HealthCheckResult.Unhealthy(UnhealthyMessage, exception))); 257return HealthCheckResult.Unhealthy(); 690return Task.FromResult(HealthCheckResult.Unhealthy("failed", e));
DependencyInjection\HealthChecksBuilderTest.cs (1)
186return Task.FromResult(HealthCheckResult.Unhealthy());