9 references to AddAsyncCheck
Microsoft.Extensions.Diagnostics.HealthChecks (1)
DependencyInjection\HealthChecksBuilderDelegateExtensions.cs (1)
163
return
AddAsyncCheck
(builder, name, check, tags, default);
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (8)
DefaultHealthCheckServiceTest.cs (8)
177
b.
AddAsyncCheck
("HealthyCheck", _ => Task.FromResult(HealthCheckResult.Healthy(HealthyMessage, data)));
178
b.
AddAsyncCheck
("DegradedCheck", _ => Task.FromResult(HealthCheckResult.Degraded(DegradedMessage)));
179
b.
AddAsyncCheck
("UnhealthyCheck", _ => Task.FromResult(HealthCheckResult.Unhealthy(UnhealthyMessage, exception)));
252
b.
AddAsyncCheck
("cancels", async ct =>
282
b.
AddAsyncCheck
("Throws", ct => throw thrownException);
283
b.
AddAsyncCheck
("Faults", ct => Task.FromException<HealthCheckResult>(faultedException));
284
b.
AddAsyncCheck
("Succeeds", ct => Task.FromResult(HealthCheckResult.Healthy()));
539
b.
AddAsyncCheck
("timeout", async (ct) =>