21 references to Unhealthy
Aspire.Hosting.Nats (1)
src\Components\Aspire.NATS.Net\NatsHealthCheck.cs (1)
33
return HealthCheckResult.
Unhealthy
();
Aspire.Hosting.Tests (2)
Health\ResourceHealthCheckServiceTests.cs (2)
142
return HealthCheckResult.
Unhealthy
();
249
var checkStatus = HealthCheckResult.
Unhealthy
();
Aspire.NATS.Net (1)
NatsHealthCheck.cs (1)
33
return 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)
17
private static readonly Task<HealthCheckResult> _unhealthyNotStarted = Task.FromResult(HealthCheckResult.
Unhealthy
("Not Started"));
18
private static readonly Task<HealthCheckResult> _unhealthyStopping = Task.FromResult(HealthCheckResult.
Unhealthy
("Stopping"));
19
private 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)
38
Result = HealthCheckResult.
Unhealthy
("Initial state");
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (1)
ManualHealthCheckTests.cs (1)
65
var unhealthyCheck = HealthCheckResult.
Unhealthy
("Test reason");
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (5)
DefaultHealthCheckServiceTest.cs (4)
76
b.AddAsyncCheck("UnhealthyCheck", _ => Task.FromResult(HealthCheckResult.
Unhealthy
(UnhealthyMessage, exception)), unhealthyCheckTags);
179
b.AddAsyncCheck("UnhealthyCheck", _ => Task.FromResult(HealthCheckResult.
Unhealthy
(UnhealthyMessage, exception)));
257
return HealthCheckResult.
Unhealthy
();
690
return Task.FromResult(HealthCheckResult.
Unhealthy
("failed", e));
DependencyInjection\HealthChecksBuilderTest.cs (1)
186
return Task.FromResult(HealthCheckResult.
Unhealthy
());